For Programmers: Free Programming Magazines  


Home > Archive > C# > June 2004 > Composite Control Properties in Design Time









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Composite Control Properties in Design Time
Dave

2004-04-27, 3:50 pm

I'm creating a composite control using Visual C#. I want to create a
property for the control that will have only 3 options (txt, xml,
connection). When the control is used and the property is clicked in
design time I want the user of the control to be presented with a
combo box in the properties window with these 3 options. I need
someone to send me a couple of simple code snippets illustrating how
to do this. If you can send a reference to a book that details how to
accomplish this it would also be appreciated.
Marek

2004-06-03, 7:31 pm

Hi Dave,

I am not sure if it is what you are really looking for but please try to
analyze the following example
http://msdn.microsoft.com/library/d...formssample.asp

Marek

"Dave" <david.d.ricketts@saic.com> wrote in message
news:94cfe30a.0404271112.7d67dd@posting.google.com...
> I'm creating a composite control using Visual C#. I want to create a
> property for the control that will have only 3 options (txt, xml,
> connection). When the control is used and the property is clicked in
> design time I want the user of the control to be presented with a
> combo box in the properties window with these 3 options. I need
> someone to send me a couple of simple code snippets illustrating how
> to do this. If you can send a reference to a book that details how to
> accomplish this it would also be appreciated.
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com