473,491 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Win Control Library - Combining Events

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
--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar / Wish You Good Work
Alper AKÇAYÖZ (Bil Muh)
www.AlperAkcayoz.com
Mar 7 '07 #1
4 1424
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.

Mar 7 '07 #2
Mr. Burch,
I thank your response. I am inexperienced in Control Library programming.
Can you kindle give me a code snippet?
--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar / Wish You Good Work
Alper AKÇAYÖZ (Bil Muh)
www.AlperAkcayoz.com
Mar 9 '07 #3

"Alper AKCAYOZ" <bi*********@hotmail.com_SiLiNiZ_REMOVEwrote in message
news:1B**********************************@microsof t.com...
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.
--
~~~~~~~~~~~~~~~~~~~
Iyi Çalismalar / Wish You Good Work
Alper AKÇAYÖZ (Bil Muh)
www.AlperAkcayoz.com


Mar 13 '07 #4
There is an article, of which title is "How to route events in a Windows
Forms application", at CodeProject site. It helped about my problem.
http://www.codeproject.com/csharp/eventrouting.asp

I thank your responses.
--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar / Wish You Good Work
Alper AKÇAYÖZ (Bil Muh)
www.AlperAkcayoz.com
"Alper AKCAYOZ" wrote:
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
--
~~~~~~~~~~~~~~~~~~~
İyi Çalışmalar / Wish You Good Work
Alper AKÇAYÖZ (Bil Muh)
www.AlperAkcayoz.com
Mar 15 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1891
by: Andrew | last post by:
Hi, friends, I need to raise certain events in my VC# windows control library. Any reference paper or sample source code for help? Thanks a lot...
6
3689
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No...
2
3602
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
4
1732
by: thomson | last post by:
Hi all, i do have a user control with 4 buttons, and all the events are firing properly, My problem is that i need to right an event handler in the user control, which gets fired after a...
9
2312
by: Sridhar | last post by:
Hi, I have created a web page which includes a place holder. I also have a dropdown list in that webpage. when I select one of the choices in that dropdown list, It will load a user control...
6
1667
by: Art | last post by:
Hi I'm new at this and need some help. I have a "solution" with 2 projects - the main project and a library. The library is simple, it contains a text box that will appear many times in the form...
20
2355
by: samean | last post by:
Hello, Could you explain me,In VB6 using control array,and how about VB.net. Thanks
3
4226
by: Mike Cain | last post by:
Hi I have a JS library that I want others in my company to use that uses AttachEvent (etc) to add a method to the onLoad event so that it is called. Using this approach of course is good because...
6
2611
by: shapper | last post by:
Hello, I am working in a class library with various custom controls. In which cases should a control inherit Control, WebControl and CompositeControl classes? And when should a custom...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.