IExtenderProvider - A little more style?

I dont know if this is possible as I cant seem to find a lot of documentation on the subject but the scenario is as follows.

I have a custom control that when dropped into a form gives all the controls on it a new property.  This property is something akin to a help text field but there is a reason for reinventing the wheel :o)

Everything works fine and in design view any controls on the form have this property now but it is a text entry box.  What I would REALLY like to do is replace that text entry box with a button style one that allows to me to display a custom form and capture the results of that.  Something like when you define the columns in a listview.

Any thoughts appreciated.

Stephen
LVL 4
Kh3ldarAsked:
Who is Participating?
 
Bob LearnedCommented:
An example of using the EditorAttribute to create a custom property editor:

The ColorPicker WinForms Control:
http://www.codeproject.com/vb/net/a_colorpicker.asp

<EditorAttribute("System.Drawing.Design.ColorEditor"), GetType(System.Drawing.Design.UITypeEditor))>

Bob
0
 
Bob LearnedCommented:
IExtenderProvider is used to give additional properties to a control, such as what the ToolTip provider does.

Is that what you want to accomplish?  Or do you want to design a custom property designer (like the TextAlign/ImageAlign property editor)?

Bob
0
 
Kh3ldarAuthor Commented:
Hi LearnedOne.

I beleive from your description I am trying to do both (they appear to be the same thing just done a different way)?

I currently have the custom properties for my controls using IExtenderProvider, they are called HelpProvider_OnFocus_Text.  You can enter text in them (like a ToolTip entry field) in the properties pane and its all saved and does it relevant things when the program is compiled.

What I would like to do is enter rich text or HTML rather than just plain text and typing this into that little textbox on the properties pane will get very frustrating.  The best example I can demonstrate is if you click into something like the Icon property for a form you get an open file dialog and you choose the icon.  The path of the image is then passed back into the properties box. I do not want to open a file using a standard dialog however I want to open a Custom form of my own (rich text / html creation form) - allow the user to enter the relevant text in there and then pass it back to the properties field.  Other examples of this would be the Dock property or the Transparancy key. (Little more elaborate than I intend to do, I just want to open another form)

I hope this is a little clearer.

Stephen
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.