Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2006, 02:49 PM
Authorized User
 
Join Date: Dec 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to maxl
Default Using the PreProcessMessage method in WebBrowser

Hey everyone.

I'm a little new to .NET programming and its pretty cool so far. What i'm trying to achieve is this: Im using the WebBroswer control to navigate the web. I sometimes surf to a site that prompts me for a username and password to ofcourse login. the usernames and passwords are the same ones that are used to log into this program so i want to just foward these strings to this message so i don't have to type this information in everytime. The PreProcessMessage method of the WebBrowser control caught my eye and i think it has the functionality im looking for, however i don't know how to harness it. Any suggestions?

Thanks in advance.
 
Old January 16th, 2007, 05:15 PM
Authorized User
 
Join Date: Dec 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to maxl
Default

Update:

Well i haven't figured out how to use the PreProccessMessage method yet, but i did find out how to send keystrokes to programs started externally from my VB program. Its pretty cool but it isn't really practical. Facilitated through the My.Computer.Keyboard namespace, the SendKeys() method sends keyboard input to whatever program has focus (for all who are curious). Im using it to send a username password pair to a sharepoint site navigated by the webbrowser control. This works fine. You have to use a timer to wait until the page loads enought to prompt you for the username and password. But when i click on a document to edit in the sharepoint site, it attempts to open it through MS Word, then prompts you again for a password, this is where i can't control it. Atleast i solved the first one.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Webbrowser control mussie C# 2005 1 March 2nd, 2010 01:10 PM
Webbrowser content vincentvdm BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 January 12th, 2008 10:52 AM
Some doubts about WebBrowser Control Xc0d C# 2005 4 November 5th, 2007 11:31 AM
webbrowser question pascali70 C# 2005 0 December 29th, 2006 10:11 AM
WebBrowser control atingoldy Beginning VB 6 1 June 16th, 2003 06:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.