Windows Develop Bookmark and Share   
 index > Windows Forms Designer > DesignSurface from DesignerHost??
 

DesignSurface from DesignerHost??

Hi,

I have a custom designer based on the windows forms designer. Is there a way to get the current design surface from a designer host?

Thanks,

vl950t

F. Gsell  Thursday, January 29, 2009 4:52 PM
Which custom designer did you developed? Why did you want to get the design surface from the designer host?
Please look at this example: http://msdn.microsoft.com/en-us/library/system.componentmodel.design.idesignerhost.aspx
VisFans
Myexp  Tuesday, February 03, 2009 1:32 AM
So,

after some further reading of the MSDN I am little bit confused about the services and DesignerHost or DesignSurface. What is the best place to add the corresponding services (like ISelectionService, IMenuCommandService etc.) is it DesignSurface or DesignerHost. Or should some services be added to the designer host and some to the design surface?

Thanks in advance,

Franz

F. Gsell  Thursday, January 29, 2009 7:07 PM
Which custom designer did you developed? Why did you want to get the design surface from the designer host?
Please look at this example: http://msdn.microsoft.com/en-us/library/system.componentmodel.design.idesignerhost.aspx
VisFans
Myexp  Tuesday, February 03, 2009 1:32 AM

You can use google to search for other answers

Custom Search

More Threads

• Inherited forms
• Developer enabled
• Resize panel in winform
• How to create table with merged cells
• Forms Designer throws error but compiles OK
• Second screen
• Cannot inherit form from base class form in DLL
• BackColor attribute doesn't affect changes
• File signing in .NET
• Ambiguous match found