SRL Archive - C#/Visual Basic Help and Tutorials

Need help^^


Powerz

2008-04-01 16:13:10

Hey, i'm pretty new too Virtual Basic scripting, and i'd like too know the following.

- I want to know how i can press buttons and send texts that a user typed in the GUI in webbrowsers.

Example:
I made an normal windows form application and there i put a webbrowser.
I direct the URL of the webbrowser too google.
Then i make a TextBox and a Button, if someone types something like: SRL forums, and presses the button (called search) google starts too search.

If i have too explain myself better, please tell me XD
I didn't really knew how i was going too explain what i wanted..:rolleyes:

Thanks.

PS*: Sorry if i double posted this, i had some problems with my connection:redface:

TViYH

2008-04-01 19:47:39

I'll try to cook something up…

EDIT: Got it. I'm using Microsoft Visual Basic 2008 Express Edition. Here's the code:
Public Class frmMain

Private Sub btnGoogleIt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGoogleIt.Click
WebBrowser1.Navigate("http://www.google.com/search?hl=en&q=" & txtSearchBox.Text & "&btnG=Google+Search")
End Sub

End Class

Where btnGoogleIt is a button, WebBrowser1 is a web browser, and txtSearchBox is a text box.

I am also supplying the program, as well as the project.