Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents
Manipulate webbrowser contents Manipulate webbrowser contents
Manipulate webbrowser contents
Go Back  Xtreme Visual Basic Talk > > > Manipulate webbrowser contents


Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2006, 06:40 AM
FiRe_Jas FiRe_Jas is offline
Regular
 
Join Date: Nov 2004
Posts: 98
Default Manipulate webbrowser contents


How can I change the contents of the webbrowser? I know to view it you do WebBrowser.Document.documentElement.InnerHTML but I was wondering if it will work the other way around?
__________________
If (Online = True) Then
Shell "firefox.exe -remote openURL(www.xeweb.net)"
End If
Reply With Quote
  #2  
Old 06-29-2006, 08:44 AM
MikeJ's Avatar
MikeJManipulate webbrowser contents MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,747
Default

Check out the Document Object Model (DOM) in MSDN. You can modify properties of a webbrowser document without having to change the entire HTML string. For example:
Code:
'Calling this after Google loads changes the background color of Google's home page 'to something resembling lime green WebBrowser1.Document.bgColor = RGB(67, 245, 103)
MSDN has most of the Document Object Model nodes laid out, so give it a good read.
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #3  
Old 06-29-2006, 09:17 AM
Birchy's Avatar
Birchy Birchy is offline
Junior Contributor
 
Join Date: Aug 2005
Location: Hereford, UK
Posts: 346
Default

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
Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents Manipulate webbrowser contents
Manipulate webbrowser contents
Manipulate webbrowser contents
 
Manipulate webbrowser contents
Manipulate webbrowser contents
 
-->