Click here to Skip to main content
15,902,917 members
Home / Discussions / C#
   

C#

 
GeneralEditing custom file formats Pin
Gleb Belov5-Feb-05 22:48
Gleb Belov5-Feb-05 22:48 
GeneralRe: Editing custom file formats Pin
Robert Rohde5-Feb-05 23:31
Robert Rohde5-Feb-05 23:31 
GeneralRe: Editing custom file formats Pin
Gleb Belov6-Feb-05 3:41
Gleb Belov6-Feb-05 3:41 
GeneralRe: Editing custom file formats Pin
mav.northwind6-Feb-05 3:51
mav.northwind6-Feb-05 3:51 
GeneralRe: Editing custom file formats Pin
Gleb Belov6-Feb-05 4:04
Gleb Belov6-Feb-05 4:04 
GeneralRe: Editing custom file formats Pin
Dave Kreskowiak7-Feb-05 4:08
mveDave Kreskowiak7-Feb-05 4:08 
Question[Are these maybe Macros ?? ] How can i do it? Pin
Anonymous5-Feb-05 22:07
Anonymous5-Feb-05 22:07 
AnswerRe: [Are these maybe Macros ?? ] How can i do it? Pin
Heath Stewart6-Feb-05 6:56
protectorHeath Stewart6-Feb-05 6:56 
With a new "vox"? (Voice activation?) Could you elaborate?

You can interact with both the WebBrowser control (which is actually Internet Explorer) or a running instance (or create a new instance if none already exist) of the InternetExplorer class by creating an RCW (Runtime Callable Wrapper) from shdocvw.dll, which you can do using either tlbimp.exe from the .NET Framework SDK, or by importing a COM reference to "Microsoft Internet Controls" using the COM tab when you click "Add Reference..." for your project.

You should search this site for "WebBrowser" or "InternetExplorer" (no space, since it's a class name). There are lots of articles about hosting the WebBrowser control in Windows Forms, as well as advanced hosting interfaces. Either way allows you to handle when documents are loaded, then walk the document object model (DOM) using the WebBrowser.Document property and casting it to the mshtml.IHTMLDocument2, which is defined in the Microsoft.mshtml.dll assembly that should've installed with VS.NET (and a number of other applications, or you can create your own from mshtml.dll as well). Walking the DOM is just like scripting a DHTML document, only with a little bit of extra work (and believe me, a lot less than with native C++ code) to cast objects to interfaces that implement the property or method you seek, which script does automatically).

You can also do this using the InternetExplorer class to automate a running instance of IE.

You could also implement a toolbar using managed code (though this isn't recommended as it will significantly increase the working set - amount of memory allocated to the process - for whatever process is hosting the WebBrowser control, be it iexplore.exe, explorer.exe (Windows Shell), or some other process). There are articles about that here on Code Project as well, if you'd only search. Try searching for "IE toolbar".

To search this site, use the text box at the top of every page underneath the logo.

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]
QuestionNetwork Monitoring in C#? Pin
TroyPalmer5-Feb-05 21:53
TroyPalmer5-Feb-05 21:53 
AnswerRe: Network Monitoring in C#? Pin
TroyPalmer8-Feb-05 11:38
TroyPalmer8-Feb-05 11:38 
Generalthreadsafe / static, general utilities Pin
pkellner5-Feb-05 20:32
pkellner5-Feb-05 20:32 
GeneralRe: threadsafe / static, general utilities Pin
Heath Stewart6-Feb-05 6:43
protectorHeath Stewart6-Feb-05 6:43 
GeneralRe: threadsafe / static, general utilities Pin
pkellner6-Feb-05 12:21
pkellner6-Feb-05 12:21 
GeneralRe: threadsafe / static, general utilities Pin
Heath Stewart7-Feb-05 6:31
protectorHeath Stewart7-Feb-05 6:31 
GeneralRe: threadsafe / static, general utilities Pin
Heath Stewart6-Feb-05 6:48
protectorHeath Stewart6-Feb-05 6:48 
GeneralRe: threadsafe / static, general utilities Pin
pkellner6-Feb-05 12:19
pkellner6-Feb-05 12:19 
QuestionDifferent ways to persist/share temporary data across classes in a multi-tier WinForm Application? Pin
DaMagicMaster5-Feb-05 20:07
DaMagicMaster5-Feb-05 20:07 
AnswerRe: Different ways to persist/share temporary data across classes in a multi-tier WinForm Application? Pin
Heath Stewart6-Feb-05 6:42
protectorHeath Stewart6-Feb-05 6:42 
AnswerRe: Different ways to persist/share temporary data across classes in a multi-tier WinForm Application? Pin
DaMagicMaster6-Feb-05 16:39
DaMagicMaster6-Feb-05 16:39 
GeneralRe: Different ways to persist/share temporary data across classes in a multi-tier WinForm Application? Pin
Heath Stewart7-Feb-05 6:35
protectorHeath Stewart7-Feb-05 6:35 
GeneralRe: Different ways to persist/share temporary data across classes in a multi-tier WinForm Application? Pin
DaMagicMaster7-Feb-05 12:50
DaMagicMaster7-Feb-05 12:50 
GeneralRe: Different ways to persist/share temporary data across classes in a multi-tier WinForm Application? Pin
Heath Stewart7-Feb-05 15:39
protectorHeath Stewart7-Feb-05 15:39 
GeneralDelete XmlNode Pin
John L. DeVito5-Feb-05 19:31
professionalJohn L. DeVito5-Feb-05 19:31 
GeneralRe: Delete XmlNode Pin
Stefan Troschuetz5-Feb-05 21:07
Stefan Troschuetz5-Feb-05 21:07 
GeneralRe: Delete XmlNode Pin
Heath Stewart6-Feb-05 6:33
protectorHeath Stewart6-Feb-05 6:33 

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.