Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Custom Form Designer class issue
 

Custom Form Designer class issue

Hello guys,

I have developed a custom Designer (by inheriting from DocumentDesigner) class for my forms. I associate the designer with my forms by using the Designer attribute the following way:

[Designer(typeof(MyDesigner), typeof(IRootDesigner))]

Everything seems to work fine except when I try to add a Data Table with drag-and-drop from the Data Sources window in Visual Studio. Visual Studio will not allow me to do this, i.e. I cannot drop it on my form. This comes from the custom designer for sure, since when I remove it everything works as expected.

Any ideas what might be causing this would be greatly appreciated.

Thanks for your time.

WorldIntruder  Monday, October 05, 2009 11:52 AM

Hello again!

Any ideas? :)

I also would like to mention that in order to preserve the default design time behavior of the Form, I implemented the code found in the FormDocumentDesigner class in my custom designer (one cannot inherit it because it is internal). However, I am still not able to drop a Data Table from the Data Sources View in Visual Studio.

Thanks!

WorldIntruder  18 hours 11 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Question
• MDI Child Form Problem
• Forms in different dlls needs to communicate
• Displaymember by valuemember
• Exception from HRESULT: Ox80040154(REGDB_E_CLASSNOTREG)????????
• query regarding the Autos and Locals windows in .net 2003 environment
• DEVPATH not working
• Focus on a row in the DataGridView
• Buttons in form's titlebar
• Control with fallback resources in satellite assembly can not be used with designer