Win Control Library - Combining Events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I developed a control at Windows Control Library that contains a CheckBox
and several Labels. All of them are docked or anchored. And their height are
same as control. I wrote several "__property set_" and "get_" to write some
text on labels. When I inserted this control on to my Windows Forms, I
intended to assing a "DoubleClick" event to it. But control's DoubleClick
event only works where labels are not covering. There are so small spaces
where control itself can be accesible. How can I combine Events of all labels
to be accessible at once when I click, doubleclick (or else) onto my control?

I thank you in advance.


PS: I am using VC++ .NET Standard v2003
 
One thing you could try to do is to subscribe to all your labels'
DoubleClick events. In the event handler (or handlers depending upon
how you are doing it), you can explicitly call this.OnDoubleClick
which should raise your control's DoubleClick event so any listener
would be able to catch it.
====================
Clay Burch
Syncfusion, Inc.
 
Mr. Burch,
I thank your response. I am inexperienced in Control Library programming.
Can you kindle give me a code snippet?
 
Alper AKCAYOZ said:
Mr. Burch,
I thank your response. I am inexperienced in Control Library programming.
Can you kindle give me a code snippet?

Best place to start is by upgrading to VS2005. The old syntax for managed
C++ in VS2003 is no longer supported.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top