Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 930
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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