Okay, this may sound a little complex but, it's not really... I swear!
1. I have created a custom control
2. The control contains a property that is a class
3. I created a TypeConverter to persist the class info (basically it writes down the properties info in the windows form designer generated code)
4. The TypeConverter is a ExpandableObjectConverter which basically means on the property grid for the CONTROL the class shows up like Font or Size
5. Whenever you change a property of the CLASS it raises an event. The CONTROL handles the event by Invalidating itself (forcing a redraw).
*** I have attached an image of what I am talking about. ***
The class contains visual properties for the control, for instance ForeColor. If I change the forecolor it should fire the event and the control should handle the event by redrawing itself at design time... the problem is it does not.
Anyone know of a solution?
1. I have created a custom control
2. The control contains a property that is a class
3. I created a TypeConverter to persist the class info (basically it writes down the properties info in the windows form designer generated code)
4. The TypeConverter is a ExpandableObjectConverter which basically means on the property grid for the CONTROL the class shows up like Font or Size
5. Whenever you change a property of the CLASS it raises an event. The CONTROL handles the event by Invalidating itself (forcing a redraw).
*** I have attached an image of what I am talking about. ***
The class contains visual properties for the control, for instance ForeColor. If I change the forecolor it should fire the event and the control should handle the event by redrawing itself at design time... the problem is it does not.
Anyone know of a solution?
Attachments
Last edited: