|
I'm developing a C#.net project in which a form holds webbrowser control. while initializing this control the following error 'Unable to get the window handle for the 'WebBrowser' control. Windowless ActiveX controls are not supported ' came. How to solve this? | | ஊக்கமத? கைவீடேல் Wednesday, August 12, 2009 5:54 AM | Hi ஊக்கமத? The WebBrowser control can only run in the main thread. If you call some methods of the control, such as Navigate, in another thread or the BackGroundWorker, it would throw this error. This is a similar thread: http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/b705c76a-da4a-4358-8ef0-86940e3065c7. If you have tousethe control in another thread, please call Control.Invoke method to do something. You can get more information from: http://msdn.microsoft.com/en-us/library/zyzhdc6b.aspx. Let me know if this helps. Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread. - Marked As Answer byAland LiMSFT, ModeratorTuesday, August 18, 2009 10:25 AM
- Unmarked As Answer byஊக்கமத? கைவீடேல் Friday, August 28, 2009 12:28 PM
- Marked As Answer byஊக்கமத? கைவீடேல் Friday, August 28, 2009 1:05 PM
- Proposed As Answer byAland LiMSFT, ModeratorTuesday, August 18, 2009 3:31 AM
-
| | Aland Li Thursday, August 13, 2009 9:40 AM | Hi ஊக்கமத? The WebBrowser control can only run in the main thread. If you call some methods of the control, such as Navigate, in another thread or the BackGroundWorker, it would throw this error. This is a similar thread: http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/b705c76a-da4a-4358-8ef0-86940e3065c7. If you have tousethe control in another thread, please call Control.Invoke method to do something. You can get more information from: http://msdn.microsoft.com/en-us/library/zyzhdc6b.aspx. Let me know if this helps. Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread. - Marked As Answer byAland LiMSFT, ModeratorTuesday, August 18, 2009 10:25 AM
- Unmarked As Answer byஊக்கமத? கைவீடேல் Friday, August 28, 2009 12:28 PM
- Marked As Answer byஊக்கமத? கைவீடேல் Friday, August 28, 2009 1:05 PM
- Proposed As Answer byAland LiMSFT, ModeratorTuesday, August 18, 2009 3:31 AM
-
| | Aland Li Thursday, August 13, 2009 9:40 AM | let me explain with an example.. | | ஊக்கமத? கைவீடேல் Monday, August 24, 2009 6:10 AM | Hi ஊக்கமத?
Could you please show the example in detail. By the way, please unmark my reply if it does not help?
Regards, Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread. - Marked As Answer byஊக்கமத? கைவீடேல் Friday, August 28, 2009 12:28 PM
- Unmarked As Answer byAland LiMSFT, ModeratorFriday, August 28, 2009 12:29 PM
-
| | Aland Li Tuesday, August 25, 2009 2:47 AM | Its working fine in my local system but in remote system leads to error | | ஊக்கமத? கைவீடேல் Tuesday, September 08, 2009 7:03 AM | Hi ஊக்கமத?
Could you please tell me more about the error?
Regards, Aland Li Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread. | | Aland Li Tuesday, September 08, 2009 9:47 AM | In my Application, I placed web control on user control, that user control is placed on form while opening this form the web control initialized and leads to error "Unable to get the window handle for the 'WebBrowser' control. Windowless ActiveX controls are not supported." . This error occur only in my remote systems and not occured in my local pc.
| | ஊக்கமத? கைவீடேல் Wednesday, September 09, 2009 4:09 AM | Hi ஊக்கமத? There are some kinds of causes of this error. You can check this thread at first: http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/b705c76a-da4a-4358-8ef0-86940e3065c7/. Could you please let me know where this error throws, in the Dispose method of the form? Regards, Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread. | | Aland Li Wednesday, September 09, 2009 4:15 AM |
|