• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 935
  • Last Modified:

c# applicationSingle Click, Double Click Event distinction in run-time and in a debug session of VS 2010. How?

Hi there;

I have a c# application I captured Single Click Event, but cannot get the double Click Event, what is the difference btw. in run-time and in a debug session of VS 2010. I appreciate your initerest.How?


Kind regard.
0
jazzIIIlove
Asked:
jazzIIIlove
  • 6
  • 5
3 Solutions
 
manishkungwaniCommented:
There is no difference in the debug-run time session ...
What is special in Debug is that you can stop the execution at anytime, see tha values of variables and everything happening in the application...

And for which control are you trying to capture the Double Click.

Not all controls have DoubleClick events.
0
 
jazzIIIloveAuthor Commented:
I can see the double event in VS 2010, but when I click, the single click event occurs. It's a datagridview like component.

Kind regards.
0
 
dj_alikCommented:
check the CellDoubleClick event
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
manishkungwaniCommented:
You can write an event handler for DoubleClick on various parts of the control.
The complete details are on: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx

Something else that can work for you is do not write an event-handler for the SingleClick, write it only for the double click :)

Also, if you can tell on which part of the control, you get the single click instead of the double click, I can help some more.
0
 
jazzIIIloveAuthor Commented:
I am using the component here given:
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_27022725.html

Note that those are complete different questions but the component I am dealing is same.

Kind regards.
0
 
manishkungwaniCommented:
So are you using a GridView?? Is it a website or a desktop software?
0
 
jazzIIIloveAuthor Commented:
standalone desktop, I am using componentone TrueDBGrid, go for their site and download it, it's fancy!
0
 
manishkungwaniCommented:
So, now the issue is cleared :D

Details at: http://helpcentral.componentone.com/nethelp/c1truedbgrid/
There is no event for DoubleClick on this Grid, there are events for HeadClick, FootClick, ColEdit, ButtonClick, ComboSelect, ValueItemError, and FilterButtonClick events provided by this grid.

Now, the DoubleClick event that you see is provided by the base asp.net control class.

So if you want some action to happen on DoubleClick, you will have to do all the base coding : get where the click happened, etc .... There is no support from the  TrueDBGrid control for this.

I hope this satisfies your question.
If not, can you specify the reason you want to use DoubleClick, because then I will be able to tell you a solution for that!!
0
 
jazzIIIloveAuthor Commented:
yep, try to capture the double click on column separator of  aTrueDB component.


Komd regards.
0
 
jazzIIIloveAuthor Commented:
Hi there;

Cursor change is the workaround for my case, as when cursor changes EW, i invoke related func.

Kind regards.
0
 
manishkungwaniCommented:
To moderators,
Please accept the solution as requested by the author, so that the community can benefit from the correct solution and I can get the deserved points.
Thanks
0
 
jazzIIIloveAuthor Commented:
cursor change event is the solution!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now