Thanks for the timely reply Tonyuk.
I didnt state my question in a clear manner.
I am writting some code in visual basic 2010.
that will log onto a site "https://www.tomwaterhouse.com/" using the web browser function.
Public Class Form1
Dim flagg As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate("https://www.tomwaterhouse.com/")
flagg = "login"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Next
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If flagg = "login" Then
WebBrowser1.Document.GetElementById("UserID").SetAttribute("Value", "UserName")
WebBrowser1.Document.GetElementById("Password").SetAttribute("Value", "MyPassword")
WebBrowser1.Document.GetElementById("LogonForm").InvokeMember("submit")
End If
flagg = ""
End Sub
How this will load the page , enter the user name , enter the password and click(submit) the login button.
But once loged on I wish to click the Greyhounds button.
Thats where i need some help.
Need sum visual basic code to activate that button.
Thanks TonyAu.