 |

02-11-2003, 06:38 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: Washington State
Posts: 276
|
|
question
|
how do you set a homepage in the internet browser componant thats in a program
|
|

02-11-2003, 07:25 PM
|
 |
Junior Contributor
|
|
Join Date: Mar 2001
Posts: 358
|
|
run this at load time
Browser.Navigate( www.yourpage.com)
I'm not sure if there is a way to set homepage. You may have to store the page then load it on call.
|
__________________
Ignorance begins with I.
|

02-12-2003, 12:57 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: Washington State
Posts: 276
|
|
|
that code doesnt do any thing just leaves the internet control blank
|
|

02-12-2003, 01:04 PM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
Browser is the name of your WebBrowser control (original is WebBrowser1). Did you set it?
www.yourpage.com should be the name of your page. I think, you must also add http:// in the front. Nad try it without the brackets. Like:
WebBrowser1.Navigate http://www.xtremevbtalk.com
|
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!
I'm sure there are things that are more important than me - I just can't thing of any...
|

02-12-2003, 01:11 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: Washington State
Posts: 276
|
|
here is the code and it says run time error 424 object required when you click command1 it also dont want you to have the http://
Private Sub Command1_Click()
WebBrowser1.Navigate www.visualbasicforum.com
End Sub
|
|

02-12-2003, 01:13 PM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
|
You must add WebBrowser to your form before using it. Press Ctrl +T and select Microsoft Internet controls.
|
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!
I'm sure there are things that are more important than me - I just can't thing of any...
|

02-12-2003, 01:14 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: Washington State
Posts: 276
|
|
|

02-12-2003, 01:17 PM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!
I'm sure there are things that are more important than me - I just can't thing of any...
|

02-12-2003, 01:19 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: Washington State
Posts: 276
|
|
|
all i did was put the control on the form put a command button and put that code into the command button i didnt change anything else
|
|

02-12-2003, 01:22 PM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
|
On which line did it point? WebBrowser or command1?
|
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!
I'm sure there are things that are more important than me - I just can't thing of any...
|

02-12-2003, 01:23 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: Washington State
Posts: 276
|
|
|

02-12-2003, 01:28 PM
|
 |
Dead dog's ghost
Forum Leader * Expert *
|
|
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
|
|
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!
I'm sure there are things that are more important than me - I just can't thing of any...
|

02-12-2003, 01:30 PM
|
|
Junior Contributor
|
|
Join Date: Jan 2003
Location: Washington State
Posts: 276
|
|
|
thx for the help the problems was i didnt have " " around the web page address
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|