hanseh

Hi.. I have a class that has a property textstyle. The text style property as it`s own property mainly a Color and font, Text style class is just an independent class that i can used anytime as a tool and it does not have a direct link to any of my classes so i cant put my delegate calls into it. what cna i do to check the event of the font and color changes so that everytime it is edited in the grid the usercontrol will be repainted.thanks



Re: Windows Forms General Trigger an event inside a property

Cameron Kloot

every time u have a method that edits the property repaint the grid control right after editing it.





Re: Windows Forms General Trigger an event inside a property

Adam D. Turner

Implement an interface and instantiate your class in the control.event.

Adam






Re: Windows Forms General Trigger an event inside a property

hanseh

thanks adam. I used the delegates to trigger the refresh method of the user control.