hi guys i need help with webbrowser :blush:
i have this site www.testnaam.MYGB.nl
i want to post something there using VB how can i do ? for sample
i have 3 text boxes
Name
Message
any one has idea?
thanks in advance :D
Printable View
hi guys i need help with webbrowser :blush:
i have this site www.testnaam.MYGB.nl
i want to post something there using VB how can i do ? for sample
i have 3 text boxes
Name
Message
any one has idea?
thanks in advance :D
Sure,
VB Code:
Private Sub Command1_Click() WebBrowser1.Document.All.submit.Click End Sub Private Sub Form_Load() WebBrowser1.Navigate "http://www.testnaam.mygb.nl/" End Sub Private Sub Text1_Change() WebBrowser1.Document.Form.Name.Value = Text1.Text End Sub Private Sub Text2_Change() WebBrowser1.Document.Form.email.Value = Text2.Text End Sub Private Sub Text3_Change() WebBrowser1.Document.Form.message.Value = Text3.Text End Sub Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) Text1.Enabled = True Text2.Enabled = True Command1.Enabled = True Text3.Enabled = True End Sub
Here is an example: (Edit:Added example buttons)
WOW GREATE !! thanks
I am happy it helped,Quote:
Originally Posted by jeroen_12
Since you resolved the thread go to : Thread Tools --> Mark Thread Resolved