Custom HostDesigner Implementation

.NET 1.1

Ok, I got a custom host designer implementation. I have run into an issue.

I have a form with controls in it, I save the form as a dll and I use it as a template in my host designer. When I load it up, and when the code hits the designer(intialize) bit then all the controls seem to hit the designerhost.add() routine and they all get added to the designer.

When all is done, I see the buttons at the bottom, but whats the problem is that they are unselectable, I can select them and see the property browser change and I can move them via the property browser, but I can not move them around on the screen via the mouse and it never puts grab handles on them when I click them.

What is going on with these controls and how do I make them move around? I know they are geting sited, tested that. They even get that little blue icon on the corner (which indecates that its an inherited item). Funny thing is, components that I have (like tooltip) don't get that blue icon in the corner like they do in VS.NET, just the controls.

Any tips on how I can get the controls moving via mouse?

[1110 byte] By [JoseFuentes] at [2008-2-4]
# 1

I had the same problem... never found a way around it.

ACorbs at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 2
Maybe this links become useful for you!
From MSDN documentation:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/custdsgnrdotnet.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/custcodegen.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/usingpropgrid.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/vsnetpropbrow.asp
Tim Dawson has developed the code and article for this topic:
Tim Dawson has created many great Windows Forms controls. Check them out at http://www.divil.co.uk/net/controls/. On top of that, he's stepped up to tackle one of the toughest challenges, creating a .NET Designer. He's also shared the source and written about his findings.
Visit Tim's site for an in depth article and source:

http://www.divil.co.uk/net/articles/designers/hosting.asp
Regards

CFQüeb at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...