ControlDesigner Question

J

JimM

I'm deriving a Designer from ControlDesigner. The control is working pretty
nicely now.

What I'd like to add is a verb response that will put the control into an
interactive design mode (where some of the properties can be modified a bit
more elegantly than with the Properties window.

I'm currently adding a Panel with three TextBox controls to the Custom
Control from within the Designer (right now it's added in Initialize, but I
get the same results adding it in GetDesignTimeHTML: the textboxes get
rendered on my control at design time, but I cannot interact with them (they
won't accept focus or typing). Obviously the design environment disables
that stuff.

How can I modify the base ControlDesigner to add a few server controls at
design-time that can be interacted with? Any ideas?? Thx.

--- Jim ---
 
V

Victor Garcia Aprea [MVP]

Hi Jim,

Inherit your custom designer from ReadWriteControlDesigner, that will make
your child controls selectable and editable.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top