Well since I don't see any tutorials posted, I figure I would make one.
This is Visual Basic 6. If you don't have it, don't understand it or don't know what it is, don't bother to read it or ask questions. This stuff is really simple.
You will need two forms, a web browser and some buttons and two textboxes.
To insert a web browser, in VB go to Project > Components and scroll down to the components that begin with the letter M. Find "Microsoft Internet Control" and tick the box located to the left of it and hit APPLY. A little earth icon will appear in your toolbar.
Now, everyone can do things differently and I choose to use a seperate form for the login prompt. You can use a frame or put it on the form with the browser or whatever you want.
Form1 will be the browser and Form2 will be the login prompt.
In Form1, draw a browser using the earth icon you set in earlier. Then make a command button somewhere on that form. This button will bring up the login form, Form2. Double click the command button and insert this as the coding.
And you're done as far as Form1 goes.
Now go to Form2 and insert two textboxes. Name one "txtemail" and the other "txtpass". txtemail is the textbox for the logins email and txtpass is the textbox for the password. You can use labels or make the default text in the textboxes to indicate what field the texbox is for. In my example I made the default text of txtemail "E-mail address" and the default text of the txtpass "Password". Now draw a command button and double click it and insert this coding.
Quote:
Form1.WebBrowser1.navigate "https://secure.mycoke.com/ssldocs/login.do?emailAddress=" & txtemail.Text & "&password=" & txtpass.Text & "&bRemember=true"
Unload Me
|
This navigates the browser on Form1 to the MyCoke login url and replaces & txtemail & with the text entered in the textbox for the users email, and & txtpass & with the text entered in the password textbox.
Thats all there is to it. This isn't exactly one of my best tutorials. I've written some a hell of alot better than this. Dunno why this one didn't come out so well. :|