|
|
Comments and Discussions
|
|
 |

|
This is a control window drawing is completed in order to have to wait for it to operate, how you can not return the window drawing directly, for example:
private void TestURL(string url)
{
cEXWB1.Navigate(url);
//Not loaded until the vesting
while (cEXWB1.ReadyState != IfacesEnumsStructsClasses.tagREADYSTATE.READYSTATE_COMPLETE)
{
Thread.Sleep(50);
}
//Finished loading operation
if (cEXWB1.ReadyState == IfacesEnumsStructsClasses.tagREADYSTATE.READYSTATE_COMPLETE)
{
string document = cEXWB1.DocumentSource;
}
}
|
|
|
|

|
I am developing the application using 2010 VB.net , Windows 8, and IE10
Has anyone worked with this wrapper in this environment?
Thank you
Joe Guzman
|
|
|
|

|
how to fetch response content form asp.net ajax control .
prafull
|
|
|
|

|
when add cEXWB control,running in here Error occurred.What is wrong?
private void InitializeComponent()
{
this.cEXWB1 = new csExWB.cEXWB();
this.cEXWB1.Border3DEnabled = false;
this.cEXWB1.DocumentSource = "<HTML><HEAD></HEAD>\r\n<BODY></BODY></HTML>";
this.cEXWB1.DocumentTitle = "";
this.cEXWB1.DownloadActiveX = true;
this.cEXWB1.DownloadFrames = true;
this.cEXWB1.DownloadImages = true;
this.cEXWB1.DownloadJava = true;
this.cEXWB1.DownloadScripts = true;
this.cEXWB1.DownloadSounds = true;
this.cEXWB1.DownloadVideo = true;
this.cEXWB1.FileDownloadDirectory = "C:\\Users\\chenzhuo\\Documents\\";
this.cEXWB1.Location = new System.Drawing.Point(772, 311);
this.cEXWB1.LocationUrl = "about:blank";
this.cEXWB1.Name = "cEXWB1";
this.cEXWB1.ObjectForScripting = null;
this.cEXWB1.OffLine = false;
this.cEXWB1.RegisterAsBrowser = false;
this.cEXWB1.RegisterAsDropTarget = false;
this.cEXWB1.RegisterForInternalDragDrop = true;
this.cEXWB1.ScrollBarsEnabled = true;
this.cEXWB1.SendSourceOnDocumentCompleteWBEx = false;
this.cEXWB1.Silent = false;
this.cEXWB1.Size = new System.Drawing.Size(287, 239);
this.cEXWB1.TabIndex = 4;
this.cEXWB1.Text = "cEXWB1";
this.cEXWB1.TextSize = IfacesEnumsStructsClasses.TextSizeWB.Medium;
this.cEXWB1.UseInternalDownloadManager = true;
this.cEXWB1.WBDOCDOWNLOADCTLFLAG = 112;
this.cEXWB1.WBDOCHOSTUIDBLCLK = IfacesEnumsStructsClasses.DOCHOSTUIDBLCLK.DEFAULT;
this.cEXWB1.WBDOCHOSTUIFLAG = 262276;
}
|
|
|
|

|
Thanks for the great code example here.
I am attempting to automate a series of steps which results in a file (csv) being downloaded.
I have got to the point where I can login and enter various parameters using the document completed event.
However there is a button I invoke which runs anohter PHP script which and then downloads a file.
When I invoke the button, the File Download dialog comes up to save the CSV file.
I do not have a URL to the file download.
Is there a way I can trap this event and automate the download to a specified location?
|
|
|
|

|
very nice, very easy to use and much much more powerful than webbrowser control, Thanks man.
|
|
|
|

|
Wow! Very impressive work - I've been looking for something like this for a while and it was like a dream came trough when I found it. I will be using the control, more or less as is in a commercial application within a totally different field.
I also like the demo app which I will have a look at and probably use as a model for my own main application (in which the control will reside).
Thank you so much for sharing this wonderful control and demo app.
Cheers!
|
|
|
|

|
I am facing an rendering issue. In my app a background thread dowing its work after its completion i have to open a dialog, Also at the same time browser is loading.
Some time a situation occurs where backgroung thread completion and browser navigation occurs at same time. Focus is moved to the dialog open after thread completion. Behind the same browser is loaded but with white screen. This is the only time when issue can be reproduce, otherwise if works great.
After closing the dialog, if you move the mouse over browser it starts rendering.
Browser navigation completed event is properly occurs without any error. Please help how to solve this.
|
|
|
|

|
I am developing an MFC/C++ application and find that web browser controls keeps stealing the focus from other windows. I downloaded this sample app and changed IProtectFocus.AllowFocusChange so it always sets pfAllow to "false", however I am still seeing the same problem with this sample app. To recreate this behavior, create a simple web page that has the auto-refresh flag set in its head section, like this: <meta http-equiv="refresh" content="10" /> Is it possible to prevent the web browser from stealing the input focus every time the page, or an element inside the page, refreshes?
|
|
|
|

|
Hi, your code is amazing.
I was wondering to know how can I block downloading of specific images or js files
there is a downloadbegin event but it dose not clear which file will be download and you have filter images but I couldn't find where you found it.
In simple way, I want to know when and which file being downloading and cancel it if I want.
Thank you
|
|
|
|

|
I'm attempting to attach an event to a RadioButton in order to be notified when the "checked" property has been changed. I've been successful at doing this with Text Input Boxes & Select Boxes (for focus & blur) using the following:
HTMLInputTextElementEvents _html_input_text_element_events = new HTMLInputTextElementEvents();
HTMLSelectElementEvents _html_select_element_events = new HTMLSelectElementEvents();
if (element is mshtml.IHTMLInputElement)
{
_html_input_text_element_events.elemonfocus += new HTMLInputTextElementEventHandler(_html_input_text_element_events_elemonfocus);
_html_input_text_element_events.elemonblur += new HTMLInputTextElementEventHandler(_html_input_text_element_events_elemonblur);
bool connect = _html_input_text_element_events.ConnectToHtmlElementEvents(element );
}
else if (element is mshtml.IHTMLSelectElement)
{
_html_select_element_events.selectonfocus += new HTMLSelectElementEventHandler(_html_select_element_events_selectonfocus);
_html_select_element_events.selectonblur += new HTMLSelectElementEventHandler(_html_select_element_events_selectonblur);
bool connect = _html_select_element_events.ConnectToHtmlSelectElementEvents(element );
}
When I attempt to do the same with a Radio Button (I've tried with HTMLElementEvents, HTMLInputTextElementEvents, and HTMLSelectElementEvents) like so:
HTMLElementEvents hee = new HTMLElementEvents();
hee.elemonclick += new HTMLElementEventHandler(hee_elemonactivate);
hee.ConnectToHtmlElementEvents(element);
Do I need to cast as something else? Is this possible?
|
|
|
|

|
Hello all,
Is there a way to retrieve the selected element. I'm new to mshtml interop and have a need to retrieve the selected element(s), if any. Also, how do you discern (programmatically) if any elements are selected? I've found the iSelectionServices interface but am unclear how to proceed. HTMLEditHelper does not appear to wrap or provide this functionality. Thx.
- Randolph
|
|
|
|

|
Downloaded the code, but it does not compile. The EXE found in the Release directory crashes on W7.
|
|
|
|

|
Hi
I Receive Error 8 The name 'CSEXWBDLMANLib' does not exist in the current context C:\Documents and Settings\newuser\Desktop\Wrapper control\csExWB\csExWB\cEXWB.cs 324 79 csExWB
I wondering how to solve this.
|
|
|
|

|
First off, let me say, thank you to the developer for their great effort.
My need stems from flaws with the .NET WebBrowser control, which has several limits, which as I peer into this solution, it seems to address. The WebBrowser limits I needed to get around were as such:
1) Not able to get all information from OnNavigate events, including BeforeNavigate.
2) How to see all posted data.
I made a MSDN article about these limitations here: http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/0a65289b-7eae-4f9f-85ca-108fbe446482[^]
I want to try this new csExWB class out. But I do not see a clear path on how to encorporate it into a hello-world like project. If one has say a VS2010 hello-world project, where thet made a simple form-based app that had the WebBrowser control in it. What would one have to do to use csExWB instead of the WebBrowser control?
I figure in the form_Load method, one would instantiate an instance of the csExWB class and pass the WebBrowser control to it, so the csExWB class could override it, but I do not see anything in csExWB to do this.
Also, what would one add as a reference to the hello-world project? Would they add a reference to csExWB.dll? What about Interop.CSEXWBDLMANLib.dll? Would one need to add that as well. Also, what about that csExWBDLMan.dll?
ATS++
|
|
|
|

|
Is it possible to create a 64 bit version of control?
|
|
|
|

|
Helpful & informative....
|
|
|
|
|

|
Hi,
I want total page size including img,js,css in webbrowser control. is it possible to get it?
Thanks
Krishna
|
|
|
|

|
as far as i understand this should be done on the ProtocolHandlerOnBeginTransaction event.
i'm using the m_AdditionalHeadersToAdd field - but it does not seem to work, the server side still responds as if this header did not exist.
i've tried the BeforeNavigate2 event with headers field as well
this is working well when i use HttpWebRequest class or ordinary framework's web browser control with the invoke:
this.webBrowser1.Navigate(@"https://www.xxx.xx/xx", "", null, "X-header: header");
any ideas / hints?
thanks in advance!
the trooper
|
|
|
|

|
Hi,
we are successfully downloading file susing this control in win xp/IE6, however in win 2008/IE7 file download does not seem to work.void dl_FileDownloadEx() is not getting called.
please advise.
Thanks,
Jaideep
|
|
|
|

|
Hi,
I want to change paper size without showing page setup dialog then print the html page without prompt.
What is the solution?
Please help me.
Thanks.
Every new thing you learn,Gives you a new personality.
|
|
|
|

|
Hi,
Is there any 64 bit version available?
The COM dll not seems to be supporting 64bit OS.
Thanks
Soorjith
|
|
|
|

|
thanks.
using c++ ?? can migrate all code to c# ??
AE
|
|
|
|

|
Hi, VS 2010 crashes whenever i close it after using the csExWB proeject (on Windows Vista OS). I registered the control in system32 and everything works fine. What can be the cause?
-- Modified Monday, June 14, 2010 3:22 AM
|
|
|
|

|
I noticed your code works for script errors and i have tried using it but not having alot of luck. I implemented all the requirements for the script error to run but do i require CBT hook? I would appreciate to know what code is required that handles the script errors.
Thanks.
modified on Wednesday, June 9, 2010 8:24 PM
|
|
|
|

|
I want two csExwb processes (not threads but csExwb of two programs,program A and program B). Program A log in the website and pass the cookie and session information to Process B and then Process B can visit the website without loging in. Reason to run programs like this is you can terminate process B any time you want and release the momery of Process B. Something like IE8 and Chrome.
Any idea? Many thanks!
|
|
|
|

|
Hi,
Can you please tell me - how to call javascript from browser object ?
Thanks,
Milan
|
|
|
|

|
when i set ShowInTaskbar to false this control recreates the control! after which events no longer fire! and w/e im doing on minimize is lost how can i fix this?
modified on Wednesday, May 5, 2010 4:37 AM
|
|
|
|

|
i keep getting this error
To send events to corresponding control, HWNDInternetExplorerServer property must be set.
that property is ReadOnly so how do i fix it?
|
|
|
|

|
Please help me to click one button and open the page in new tab. I cannot use your AddNewBrowser function for this purpose because url cannot solve this problem in anycase, for example post method.
Thanks in advance
|
|
|
|

|
Do you know how to clone webBrowser control? In your project add new tab means create another browser and kind of navigate the link supported. If I have one cxWB control that opening one page(maybe it stores cookies and the site it's opening using post request.), I want to create another cxWB that clone current status of it. Can I do it? If yes, please give me some suggestion. Thank you!
-binh
|
|
|
|

|
I need to create a c# app which contains a browser which does the following
Navigates user to a web page
When the user clicks an image on the page it is downloaded and information about the image is stored in SQL Server
Is this possible using c# and IE
|
|
|
|

|
Hi this web browser control is excellent. It solved my most of the problems. But just I want to know how can I scroll this web browser using code? Actually I want to use custom scroll bars in my application for
better look. so I want to scroll this web browser control based on scroll change of my custom scroll bars.
Please help me on this.
Thanks,
VIRAL
|
|
|
|

|
I have Visual Studio 2010, and it says that the DLman.tlb is an invalid com reference, and wont let me add it. why won't it add this .tlb file as a reference?
|
|
|
|

|
I am automating a website using csExWB componenet. My scenario is, on the web page I have a dropdown which has a onchange event assosiated with it. On changing any value in the dropdown the page gets post back.
But when I select any item in the dropdown from my code, onchange event is not firing.
Pls help me in this issue. Thanks for your help
|
|
|
|

|
I notice that csEXWB sends IE as user-agent in its headers, any way to change that and make it send firefox useragent string or a custom user agent header?
|
|
|
|

|
Hi mehrcpp,
I download your source code but I cannot invoke any events of HTMLEvents
For examples:
bool HTMLDocumentEvents2.onclick(IHTMLEventObj pEvtObj)
{
return Invoke_Handler(HTMLDispIDs.DISPID_HTMLDOCUMENTEVENTS2_ONCLICK, pEvtObj);
}
bool HTMLDocumentEvents2.ondblclick(IHTMLEventObj pEvtObj)
{
return Invoke_Handler(HTMLDispIDs.DISPID_HTMLDOCUMENTEVENTS2_ONDBLCLICK, pEvtObj);
}
void HTMLDocumentEvents2.onkeydown(IHTMLEventObj pEvtObj)
{
Invoke_Handler(HTMLDispIDs.DISPID_HTMLDOCUMENTEVENTS2_ONKEYDOWN, pEvtObj);
}
void HTMLDocumentEvents2.onkeyup(IHTMLEventObj pEvtObj)
{
Invoke_Handler(HTMLDispIDs.DISPID_HTMLDOCUMENTEVENTS2_ONKEYUP, pEvtObj);
}
How can I invoke event mousedown, mouseclick, etc ... of your webbrowser wrapper.
Please help me. Thanks a lot.
Here is my skype nick. If you don't min, please add me: binh_vu54321
|
|
|
|

|
I am use ASP.NET AJAX UpdatePanel to inlcude DropDownList & Label.
Set DropDown.AutoPostback = true and write some code to set Label.Text base on DropDownList Text.
1st time I changed DropDownList item can got an event,
But 2nd time no event coming!!!
Any body can hlep me.. Thank you..
|
|
|
|

|
Hello, thanks for your GREAT codes !
It helps me so much.
But i found a problem with it .
I tried to combine csexwb with demoapp .
so, there is no dll now .
Everything is good .......
But , the DISPID_AMBIENT_DLCONTROL doesn't work !
[DispId(HTMLDispIDs.DISPID_AMBIENT_DLCONTROL)]
public int Idispatch_AmbiantDlControl_Invoke_Handler()
{
MessageBox.Show("hello world2345!");
return (int)m_DLCtlFlags;
}
What's wrong with it?
It confused me so much !
|
|
|
|

|
Hi,
I am trying to capture HTML Document events through Automation but it is not working. I have manually activated m_WantHTMLEvents=true and m_WantHtmlDocumentEvents = true
But I am not getiing any document event.
I have seen that in DWebBrowserEvents2.DocumentComplete(object pDisp, ref object URL)
m_TopLevelHtmlDocumentevents.ConnectToHtmlEvents is not being called.
my environment Vista+ IE7
best regards.
Mahmood
|
|
|
|

|
how can i prevent dragging from within the browser to within the browser itself?
|
|
|
|

|
Hi,
at first, perfect piece of work! but i think i found a small bug:
.
.
.
win2 = doc2.parentWindow as IHTMLWindow2;
if (win2 != null)
return null;
//MSDN, JScript is MSHTML default
if (ScriptLanguage.Length == 0)
ScriptLanguage = "JavaScript";
.
.
.
i think the line "if (win2 != null)" should be "if (win2 == null)"
best regards,
michael
|
|
|
|

|
Hello,
Your article is a fine piece of coding and I'm happy I found it.
I'm trying to do something rather unusual as I haven't been able to find any solid sample of how to do it.
I'm trying to use a Web Browser (or any other web enabled control) as an ActiveX so I can later place it on a regular HTML page.
This should give me an option to do two separate browsing, something like a browsing Viewer.
I'm unable to find anything even remotely into this direction.
Is it possible to use your basic controls in such manner? Would it require any changes?
Thanks in advance,
-Dror
|
|
|
|

|
I currently have my own find dialog but when i press ctrl + F it shows the IE dialog, how can i disable or hide this dialog from showing? Thanks.
|
|
|
|

|
留爪,日后在说!留爪,日后在说!留爪,日后在说!留爪,日后在说!留爪,日后在说!留爪,日后在说!
|
|
|
|

|
I'm accessing web pages that use the webservice.htc behavior file. These pages work fine in a non .net application using the standard webbrowser object. The web service object does not seem to get initialized from the page's onload event when running within this wrapper. Can someone tell me what I might be doing wrong?
|
|
|
|

|
Hi,
Thanks for this excellent article.
I'm trying to use the html editor but it seems that the drag and drop functionality is not implemented. Even drag inside the document is not executed.
I'll appreciate help to overcome this problem?
Thanks'
Gil
|
|
|
|

|
The control is so powerfull, thanks for that.
But I got some problems when swith the tab.
The first time I input some chinese string and switch the source tab.
And then input some string in the source tab.
Uncorrected string will emerge when I switch to the edit tab.
Could you help me to solve the problem?
|
|
|
|

|
I am interested in creating an app based on your control. Along with the app will be a secure file containing sensitive html files that I do not want the end user to be able to see directly. At run time, I will load those files into a memory stream, and I was hoping to then be able to load those directly into your control. Any help on how to accomplish this would be appreciated.
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
A C# (.NET 2.0) control which creates, hosts, and offers advanced customization such as dragdrop, file downloads, HTTP/S header viewing, and much more.
| Type | Article |
| Licence | CPOL |
| First Posted | 25 May 2007 |
| Views | 880,004 |
| Downloads | 21,843 |
| Bookmarked | 457 times |
|
|