IBM developerWorks
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 6th, 2003, 09:10 AM
natsand natsand is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: brooklyn, ny
Posts: 3 natsand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help with WebBrowser Control

I am trying to automate the selection of some form elements on a Web Page using VB6. I have added a reference to the HTML Object Library to the project and am trying to tie the navigation and form manipulation to a button click on the form.

I have the following code associated with a button called "btnName":

Private Sub btnName_Click()

WebBrowser1.navigate "http://www.google.html"
DoEvents: DoEvents: DoEvents

Do While WebBrowser1.Busy
DoEvents
Loop

Set doc = WebBrowser1.document
DoEvents

Do While WebBrowser1.Busy
DoEvents
Loop

End Sub

However whenever I try to run or compile the project I get an error that says "Variable not defined" and highlights "WebBrowser1" in the code.

Can anyone tell me what I'm missing or doing wrong. Based on all my research, it looks like I am implementing correctly, but I cannot for the life of me figure it out.

MANY THANKS!!!

Reply With Quote
  #2  
Old August 6th, 2003, 11:55 AM
nopoints nopoints is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Windsor ON, Canada
Posts: 459 nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 44 m 22 sec
Reputation Power: 8
WebBrowser1 is a WebBrowser control. a control that you would place on the form. to get that control you need a reference to Microsoft Internet Controls in components.
__________________
Programmer's Corner

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Help with WebBrowser Control


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway