Click here to Skip to main content
15,920,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all!

Im developing window style which provides few buttons placed on the window. The point is that developer refers our style and gets ready to use dialog with our company look on it. Just add behaviour behind buttons and maybe add more uielements on the form etc.

The problem is that developer gets those buttons but cannot eg. hook any button events like normally.
Posted

1 solution

You'll have to create a class the developer can inherit, and in this class you create events for the buttons. So say you have an OK button you handle the click event in your class and then raise your OKButtonClicked event which subclasses can handle.
 
Share this answer
 
Comments
paleGegg0 20-Oct-11 2:17am    
thanks for your time :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900