newbie82
Member
- Joined
- Mar 7, 2005
- Messages
- 9
- Programming Experience
- Beginner
question on strings and forms
Hello,
I have a textbox on 'form4' in which a web address is typed with an 'ok' button under it. When 'ok' is clicked the address is stored as a string:
Dim strHomepage As String
strHomepage = txthomepage.text
On 'form1' there is a button which, when clicked, I would like to navigate the axwebbrowser(also on 'form1') to strHomepage.
I have delcared 'strHomepage' as being public and have the following code in the click event of the button on 'form1':
AxWebBrowser.Navigate(strHomepage)
I get no errors but it does not work. Been staring at this for so long that I'm probably missing something obvious.
Any help greatly appreciated!!
Hello,
I have a textbox on 'form4' in which a web address is typed with an 'ok' button under it. When 'ok' is clicked the address is stored as a string:
Dim strHomepage As String
strHomepage = txthomepage.text
On 'form1' there is a button which, when clicked, I would like to navigate the axwebbrowser(also on 'form1') to strHomepage.
I have delcared 'strHomepage' as being public and have the following code in the click event of the button on 'form1':
AxWebBrowser.Navigate(strHomepage)
I get no errors but it does not work. Been staring at this for so long that I'm probably missing something obvious.
Any help greatly appreciated!!
Last edited: