Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Problem with Usercontrol
 

Problem with Usercontrol

Hi there,

I'm currently developing a usercontrol (HTML Editor) which uses AxDHTML (Com Object which comes bundled with IE) as Editor.
At VS.NET 2003 I hab no problems with the usercontrol or the Component but now I switched from .NET 1.1 to 2.0 and usercontrol causes problems.

At the designview of the usercontrol itself there are noproblems but the moment I try to use the control in another form the usercontrol itself isn't in designmode anymore and there there are errors like:

The Control caused an unhandles Exception in the designer!

or:

Windowless ActiveX Controls aren't supported!

I've already tried to recreate the InterOp Assemblies for the Component but this didn't help either.

How can I avoid this error at designtime? I thought of disabling the AxDHTML Control at designtime but as already mentioned the usercontrol isn't in designtime when I use it on another form.

I already thought of writing a customcontrol but I don't know how to Paint the Controls in the OnPaint Event.

If there are any solutions... post'em please.

Thx in Advance

Steve

noctifer  Monday, March 27, 2006 7:05 AM
I've already managed to solve this problem. If anybody has problems with AxDHTML within VS.NET 2005 mail me at noctifer3903@yahoo.com and I'll try to help you. CU Steve
noctifer  Monday, March 27, 2006 8:14 PM
I've already managed to solve this problem. If anybody has problems with AxDHTML within VS.NET 2005 mail me at noctifer3903@yahoo.com and I'll try to help you. CU Steve
noctifer  Monday, March 27, 2006 8:14 PM

You can use google to search for other answers

Custom Search

More Threads

• IEventHandlerService, IMouseHandler
• SelectionRules and grab handle problem in design mode
• "Illegal Characters in Path" an error while opening the C# Form in VS 2005
• property ordering in the the grid
• DesignSurface Control Selection problems
• Error in SELECT clause: expression near '['
• ComCtrl wrapped control & FlatStyle.System style controls
• Differents types of ListBox Control
• How do I get the true underlying GroupBox text color property from Color.ControlText
• Undo/Redo does not preserve order of Container.Add calls on Redo