473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Mouse Events

My control takes a certain action when one area is clicked. However, I want
to override this action in the MouseUp or Click Event much like the KeyPress
Event where you can set the KeyEventArg to "handled". How can I do this with
the Mouse click event to indicate that it has been handled and I don't want
the control tp process the click event any further.

For a specific example, I have a DataGrid which gets sorted when the user
clicks on the column header. However, if when the users clicks on the
header, I don't always want to allow sorting. I know I can set the
AllowSorting to False but I want to leave it as true and stop sorting on
certain columns under certain conditions.
--
Dennis in Houston
Nov 21 '05 #1
2 1258
I believe this is exactly what you are looking for:
http://www.syncfusion.com/FAQ/WinFor...44c.asp#q1083q

hope that helps..
Imran.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
My control takes a certain action when one area is clicked. However, I
want
to override this action in the MouseUp or Click Event much like the
KeyPress
Event where you can set the KeyEventArg to "handled". How can I do this
with
the Mouse click event to indicate that it has been handled and I don't
want
the control tp process the click event any further.

For a specific example, I have a DataGrid which gets sorted when the user
clicks on the column header. However, if when the users clicks on the
header, I don't always want to allow sorting. I know I can set the
AllowSorting to False but I want to leave it as true and stop sorting on
certain columns under certain conditions.
--
Dennis in Houston

Nov 21 '05 #2
Thanks. I"ll try it. I had tried it with

"Imran Koradia" wrote:
I believe this is exactly what you are looking for:
http://www.syncfusion.com/FAQ/WinFor...44c.asp#q1083q

hope that helps..
Imran.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
My control takes a certain action when one area is clicked. However, I
want
to override this action in the MouseUp or Click Event much like the
KeyPress
Event where you can set the KeyEventArg to "handled". How can I do this
with
the Mouse click event to indicate that it has been handled and I don't
want
the control tp process the click event any further.

For a specific example, I have a DataGrid which gets sorted when the user
clicks on the column header. However, if when the users clicks on the
header, I don't always want to allow sorting. I know I can set the
AllowSorting to False but I want to leave it as true and stop sorting on
certain columns under certain conditions.
--
Dennis in Houston


Nov 21 '05 #3

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

Similar topics

5
by: John Champaign | last post by:
Hi all, I'm working on an educational applet for a child with special needs. He's got a bit of a trick to make my life more difficult... To interact with the applet he needs to click on...
0
by: Stephen Williams | last post by:
I am migrating a VB 6 PictureBox control to VB.NET. In VB 6, this control modified its border style during the mouse down and up events to provide user feedback that it was selected. Once...
1
by: Jean-Gael GRICOURT | last post by:
I am trying to capture mouse events when entering and leaving a DIV layer. This test code works fine with IE 6.0 and Opera 7.21 but fails with Mozilla/Netscape. The strange thing is that the mouse...
3
by: red | last post by:
mouse events when the mouse is on a "child control" hi everyone; my problem: I have a userControl in this usercontrol, I have a child control (a button) when the mouse moves over the...
5
by: Bill Henning | last post by:
Does anyone know a good method of preventing keyboard and mouse events from interrupting processing? My situation is: 1) I need to track and handle all key and mouse events 2) I need to perform...
3
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events....
3
by: Charles Law | last post by:
In a user control, is it possible to replace the default mouse events with my own? In particular, I want the consumer of my control to get MouseMove events when the mouse is over my control, so...
2
by: bretth | last post by:
In a VB.Net Windows Forms application, I have a user control that handles mouse events. Another section of code programmatically adds a label to the control. I would like label to ignore all...
5
by: Adeel | last post by:
Hi group! I'm trying to learn C# on my own... I'd appreciate it very much if someone can help me out here. I have a basic form without any controls on it... I want to catch mouse clicks (both...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.