473,506 Members | 17,000 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding click event to generic control?

Hi,

I want to develop a custom checkbox. I want to use the existing checkbox
in a custom control where I use the disabled state as a third state. I
need to be able to detect mouse or click events in the disabled checkbox
or the parent custom control.

Is this possible? How does a control like a button control implement
event trapping like a click event?

Thanks for your time.
Nov 18 '05 #1
2 2043
You need to include some client side scripting to handle the the disabled
state.
For example, add an attribute ( eg state ) to your custom control.
Check the attribute on each click. If disabled return false.

A
"Stephen Lambie" <"Stephen Lambie"> wrote in message
news:Oq**************@TK2MSFTNGP10.phx.gbl...
Hi,

I want to develop a custom checkbox. I want to use the existing checkbox
in a custom control where I use the disabled state as a third state. I
need to be able to detect mouse or click events in the disabled checkbox
or the parent custom control.

Is this possible? How does a control like a button control implement
event trapping like a click event?

Thanks for your time.

Nov 18 '05 #2
How do I detect a click if the custom control does not have a click
event? A disabled checkbox does not fire any events if disabled. This is
why I need to detect clicks in the parent class/control.
Andrew de la Harpe wrote:
You need to include some client side scripting to handle the the disabled
state.
For example, add an attribute ( eg state ) to your custom control.
Check the attribute on each click. If disabled return false.

A
"Stephen Lambie" <"Stephen Lambie"> wrote in message
news:Oq**************@TK2MSFTNGP10.phx.gbl...
Hi,

I want to develop a custom checkbox. I want to use the existing checkbox
in a custom control where I use the disabled state as a third state. I
need to be able to detect mouse or click events in the disabled checkbox
or the parent custom control.

Is this possible? How does a control like a button control implement
event trapping like a click event?

Thanks for your time.


Nov 18 '05 #3

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

Similar topics

16
3155
by: Picho | last post by:
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET...
3
4856
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
2
330
by: Stephen Lambie | last post by:
Hi, I want to develop a custom checkbox. I want to use the existing checkbox in a custom control where I use the disabled state as a third state. I need to be able to detect mouse or click...
16
640
by: Picho | last post by:
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET...
0
7218
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
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4701
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
3188
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
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.