Link to home
Start Free TrialLog in
Avatar of Kh3ldar
Kh3ldar

asked on

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
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

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
Avatar of Kh3ldar
Kh3ldar

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial