Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web from command button 1

Status
Not open for further replies.

DanNorris2000

Technical User
Nov 10, 2000
186
US
I would like to put a command button on a form and on click event go to a specific web page to check some exchange rates then return back to form after closing IE
Thanks
 
You can use the Inet control to:

1) Access a certain web page
2) Read the html source into a string
3) Strip out the exchange rates you need

You dont need to display it or close the web page; it can all be done without displaying the page to the user.
 
If you actually want to see the website, use the WebBrowser control
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Sounds great but it is a little out of my programming range. I really just need to popup the url go to the bottom and get the rate to key in. baby steps for me
 
Add a Webbrowser control to your form (Project|Components|Controls|Microsoft Internet controls), set it's visible property to False.

Add 2 command buttons
Add this code:
Private Sub Command1_Click()
WebBrowser1.Visible = True
WebBrowser1.Navigate "End Sub
Private Sub Command2_Click()
WebBrowser1.Visible = False
WebBrowser1.Stop
End Sub

For any other details, see VBHelp|Webbrowser control
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top