Ok... I'm curious how you can manipulate Internet Explorer via the .NET framework. I've searched for a long time through the object browser and I couldn't find anything that looked right. Do you have to use COM
Regards,
Chris the Newbie
Ok... I'm curious how you can manipulate Internet Explorer via the .NET framework. I've searched for a long time through the object browser and I couldn't find anything that looked right. Do you have to use COM
Regards,
Chris the Newbie
IE & Internet Explorer
MeMyselfNDotnet
It does require COM interop.
You can control Internet Explorer by creatintg a Band object that is hosted by IE. An example of this can be found at http://www.codeproject.com/csharp/dotnetbandobjects.asp.
There are a number of other extensions and customizations you can make.
http://msdn.microsoft.com/library/default.asp url=/workshop/browser/ext/extensions.asp
Another approach is hosting the Web Browser control, which still requires interop and may be easier depending on what you are trying to accomplish.
If you can be more specific you what you want to do, I may be able to point you in the right direction.
Chris Mayo MS
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_document.asp
http://msdn.microsoft.com/workshop/browser/WebBrowser/WebBrowser.asp
http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser(VS.80).aspx
http://msdn.microsoft.com/library/default.asp url=/workshop/browser/webbrowser/browser_control_node_entry.asp
hope this helps...
The band object works pretty well on IE 6, but as mentionned in an earlier post (a few posts below), it doesn't seem compatible with IE 7: the toolbar cannot be moved any more :-(
Thibaud
db_cooper1950
Shannon,
Are there books or tutorials or sample code on writing browser extensions. It will be very helpful if the MSDN article has some screen shots on the customized UI. For example, what exactly is "standard context menu"
Thanks,
Jazure
Clabab
The best I have seen is the Code Project example.
The only .NET Framework one that I am aware of is Programming IE with C#. It is an article that use to be available in pdf on Amazon, but I checked today and seems they no longer carry it. I found it at ASPToday (http://www.asptoday.com/Content.aspx id=1980). I am not sure of the quality of the article as I have never read it, but I have seen it referenced in other areas.
I have used Programming Internet Explorer 5.0 ( http://www.amazon.com/gp/product/0735607818/sr=8-2/qid=1150135007/ref=pd_bbs_2/002-4239416-8752015 %5Fencoding=UTF8 ) in the past and unfortunately there is not a counterpart to it in the .NET Framework. If you know C++ and more importantly COM you can at least get an idea of some of the functionality that you can immitate. Even though it is based on IE 5.0, it is still useful since there is not an updated version.