Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > question


Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2003, 06:38 PM
yoshiyyy yoshiyyy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: Washington State
Posts: 276
Default question


how do you set a homepage in the internet browser componant thats in a program
Reply With Quote
  #2  
Old 02-11-2003, 07:25 PM
nate's Avatar
nate nate is offline
Junior Contributor
 
Join Date: Mar 2001
Posts: 358
Default

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.
Reply With Quote
  #3  
Old 02-12-2003, 12:57 PM
yoshiyyy yoshiyyy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: Washington State
Posts: 276
Default

that code doesnt do any thing just leaves the internet control blank
Reply With Quote
  #4  
Old 02-12-2003, 01:04 PM
Ales Zigon's Avatar
Ales Zigon Ales Zigon is offline
Dead dog's ghost

Forum Leader
* Expert *
 
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
Default

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...
Reply With Quote
  #5  
Old 02-12-2003, 01:11 PM
yoshiyyy yoshiyyy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: Washington State
Posts: 276
Default

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
Reply With Quote
  #6  
Old 02-12-2003, 01:13 PM
Ales Zigon's Avatar
Ales Zigon Ales Zigon is offline
Dead dog's ghost

Forum Leader
* Expert *
 
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
Default

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...
Reply With Quote
  #7  
Old 02-12-2003, 01:14 PM
yoshiyyy yoshiyyy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: Washington State
Posts: 276
Default

it is on the form
Reply With Quote
  #8  
Old 02-12-2003, 01:17 PM
Ales Zigon's Avatar
Ales Zigon Ales Zigon is offline
Dead dog's ghost

Forum Leader
* Expert *
 
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
Default

How did you name it?
__________________
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...
Reply With Quote
  #9  
Old 02-12-2003, 01:19 PM
yoshiyyy yoshiyyy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: Washington State
Posts: 276
Default

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
Reply With Quote
  #10  
Old 02-12-2003, 01:22 PM
Ales Zigon's Avatar
Ales Zigon Ales Zigon is offline
Dead dog's ghost

Forum Leader
* Expert *
 
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
Default

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...
Reply With Quote
  #11  
Old 02-12-2003, 01:23 PM
yoshiyyy yoshiyyy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: Washington State
Posts: 276
Default

it hilights this
WebBrowser1.Navigate www.visualbasicforum.com
and says:
run time error 424 object required
Reply With Quote
  #12  
Old 02-12-2003, 01:28 PM
Ales Zigon's Avatar
Ales Zigon Ales Zigon is offline
Dead dog's ghost

Forum Leader
* Expert *
 
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
Default

Try this
Attached Files
File Type: zip project1.zip (1.4 KB, 6 views)
__________________
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...
Reply With Quote
  #13  
Old 02-12-2003, 01:30 PM
yoshiyyy yoshiyyy is offline
Junior Contributor
 
Join Date: Jan 2003
Location: Washington State
Posts: 276
Default

thx for the help the problems was i didnt have " " around the web page address
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->