Click here to Skip to main content
15,901,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: GetArray and SetArray Pin
spif200121-Dec-04 19:56
spif200121-Dec-04 19:56 
GeneralRe: GetArray and SetArray Pin
SudeepPradhan21-Dec-04 20:24
SudeepPradhan21-Dec-04 20:24 
QuestionHow to AutoFit Text in a Windows Richtextbox control? Pin
AVaka21-Dec-04 17:51
AVaka21-Dec-04 17:51 
AnswerRe: How to AutoFit Text in a Windows Richtextbox control? Pin
AVaka22-Dec-04 23:13
AVaka22-Dec-04 23:13 
GeneralBetter Iteration Pin
sreejith ss nair21-Dec-04 16:47
sreejith ss nair21-Dec-04 16:47 
GeneralRe: Better Iteration Pin
Heath Stewart22-Dec-04 6:26
protectorHeath Stewart22-Dec-04 6:26 
GeneralWeb page form controls Pin
Nosheen Iqbal21-Dec-04 16:32
Nosheen Iqbal21-Dec-04 16:32 
GeneralRe: Web page form controls Pin
Heath Stewart22-Dec-04 9:25
protectorHeath Stewart22-Dec-04 9:25 
Embed the WebBrowser control (the browsing control that is actually Internet Explorer) in a Form. You can do this by customing your toolbox in VS.NET (where you find all the controls and components) and clicking the COM tab. Find the Microsoft WebBrowser Control and add it. Drag that to a form and two interop assemblies are created - one for the ActiveX control and one for the type library (describes COM types). Then right-click on your Project, select Add References, and find the Microsoft.mshtml.dll assembly that should be installed with VS.NET.

Now in your code cast the AxWebBrowser.Document property to IHTMLDocument2 (be sure to add using Microsoft.mshtml to your source code plus any other namespaces you need, otherwise you'll need to fully-qualify every Type name). From there it's just a matter of walking the Document Object Model (DOM). If you have any experience with DHTML that should be easy. If not, go to the Web Development[^] forum.

There's lots of examples on this site, too. Use the search bar under the logo at the top of the page and try searching for "WebBrowser", for example.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralFileSystemWatcher Pin
Rafferty Uy21-Dec-04 15:59
Rafferty Uy21-Dec-04 15:59 
GeneralRe: FileSystemWatcher Pin
Dave Kreskowiak22-Dec-04 5:47
mveDave Kreskowiak22-Dec-04 5:47 
GeneralFlash & C# Pin
mszulman21-Dec-04 9:03
sussmszulman21-Dec-04 9:03 
GeneralRe: Flash & C# Pin
Heath Stewart21-Dec-04 12:44
protectorHeath Stewart21-Dec-04 12:44 
GeneralRe: Flash & C# Pin
J4amieC21-Dec-04 22:29
J4amieC21-Dec-04 22:29 
GeneralRelation between Tables a dataset Pin
Gedrain21-Dec-04 8:57
Gedrain21-Dec-04 8:57 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart21-Dec-04 12:51
protectorHeath Stewart21-Dec-04 12:51 
GeneralRe: Relation between Tables a dataset Pin
Gedrain21-Dec-04 23:08
Gedrain21-Dec-04 23:08 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart22-Dec-04 6:18
protectorHeath Stewart22-Dec-04 6:18 
GeneralRe: Relation between Tables a dataset Pin
Gedrain22-Dec-04 7:22
Gedrain22-Dec-04 7:22 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart22-Dec-04 9:20
protectorHeath Stewart22-Dec-04 9:20 
GeneralDoubleClick and Click Events ... Left Mouse Button Pin
new_phoenix21-Dec-04 8:49
new_phoenix21-Dec-04 8:49 
GeneralRe: DoubleClick and Click Events ... Left Mouse Button Pin
Heath Stewart21-Dec-04 13:01
protectorHeath Stewart21-Dec-04 13:01 
GeneralTabPage and DataGrid - weird behavor Pin
Wjousts21-Dec-04 6:23
Wjousts21-Dec-04 6:23 
GeneralUsing WMI Pin
realmontanakid21-Dec-04 4:58
realmontanakid21-Dec-04 4:58 
GeneralRe: Using WMI Pin
Heath Stewart21-Dec-04 12:41
protectorHeath Stewart21-Dec-04 12:41 
GeneralC# app stopping windows from shutting down Pin
mikey_g21-Dec-04 2:56
mikey_g21-Dec-04 2:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.