المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Double click custom controls



C# Programming
07-30-2009, 05:12 PM
Im writing a simple control to use in my app. It consists of a button with two labels on it, each displaying different data.

Heres my problem:

When I use the control in my app, I have to click twice on the labels to trigger the click event of the control while clicking on a part of the button with no label on it works correctly. I assume the way to handle this is to tie the labels click events to the controls click event. I have managed to setup properties correctly to alter label text and color and what not but how do I go about linking the click events"

Thanks,
Jon