You are viewing our Forum Archives. To view or take place in current topics click here.
Can someone help me ? (Visual basic)
Posted:

Can someone help me ? (Visual basic)Posted:

I_Am_Superman
  • TTG Senior
Status: Offline
Joined: Dec 15, 201013Year Member
Posts: 1,472
Reputation Power: 82
Status: Offline
Joined: Dec 15, 201013Year Member
Posts: 1,472
Reputation Power: 82
Ok guys this is for testing purposes as I am still learning but I want to do the following:
Once logged in the name of the account will be shown in a label
Once successfully logged in it will say "successful login" - I know the simple messagebox.show("successful login") but I need it to only say it when you are logged in.

So basically in a nutshell I want a label with the account holders name (Currently for hotmail) and a success message when logged in.

Note: Webbrowser1 is on form 2 so it is not visual on the actual hotmail form.

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Timer1.Start()
        Form2.WebBrowser1.Navigate("hotmail.co.uk")
        Timer1.Stop()
        Try
            Form2.WebBrowser1.Document.GetElementById("i0116").SetAttribute("value", TextBox1.Text)
            Form2.WebBrowser1.Document.GetElementById("i0118").SetAttribute("value", TextBox2.Text)

            Form2.WebBrowser1.Document.GetElementById("idSIButton9").InvokeMember("click")
        Catch

        End Try
    End Sub
End Class


If you could edit that accordingly I would be very pleased.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.