HighTechTalks DotNet Forums  

Bare minimum for a designer

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss Bare minimum for a designer in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ZMan
 
Posts: n/a

Default Bare minimum for a designer - 04-21-2004 , 01:01 AM






I've looked in depth at the ShapeDesigner
(http://windowsforms.net/articles/shapedesigner.aspx) example and have
succesfully made some changes to it.

I decided I wanted to start my own designer from scratch so I understood
things a bit better and though I've followed the code from ShapeDesigner I
can never see a designer attached to my classes.

I've added the [Designer...]atribute to my class, for now I only have a root
designer - do I need both root and regular?

I've defined the root designer like the Shape one only much simpler. I
didn't use IToolboxUser and I'm using the base class implementation for
everything. I copied the IRootDesigner methods from ShapeDesigner and
created a DesignerView with a very simple paint event.

From my reading those seem like the bare minimum to see a design surface -
it won't do anything but I should see the text from my paint event.

Its pretty obvious that my class is ignoring the [Designer...] attribute but
there's no errors - it all compiles. I guess I'm missing something real
important.


Any help appreciated, otherwise I guess I'm going to start chopping things
out of the ShapeDesigner to find the minimum required.

Zman



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.