Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can i release objects....... Pin
Roger Wright8-Jan-10 12:48
professionalRoger Wright8-Jan-10 12:48 
GeneralRe: how can i release objects....... Pin
Luc Pattyn8-Jan-10 13:09
sitebuilderLuc Pattyn8-Jan-10 13:09 
AnswerRe: how can i release objects....... Pin
dojohansen8-Jan-10 0:21
dojohansen8-Jan-10 0:21 
AnswerRe: how can i release objects....... Pin
Adriaan Davel11-Jan-10 20:46
Adriaan Davel11-Jan-10 20:46 
QuestionAccessing Exchange Server Pin
satsumatable7-Jan-10 20:13
satsumatable7-Jan-10 20:13 
Questionbutton click event Pin
anishkannan7-Jan-10 19:33
anishkannan7-Jan-10 19:33 
AnswerRe: button click event Pin
kpeter67-Jan-10 21:12
kpeter67-Jan-10 21:12 
AnswerRe: button click event Pin
OriginalGriff7-Jan-10 22:25
mveOriginalGriff7-Jan-10 22:25 
If you think about it, then it is fairly obvious that you will get a single click event immediately upon pressing the mouse button - the second click has not happened yet, so the OS doesn't know this will be a double click. When the second click occurs within the double click time, a double click event is fired as well.

The best thing to do is to start a timer in the click event handler, and cancel it in the double click event. If the timer expired event happens, perform the "Hi" action. If you set the timer to a little larger than the double click time, then it will work as best you can.

You can get the current value for the double click time from SystemInformation.DoubleClickTime[^]

The only other solution is to re-design your UI to get rid of the problem - which is what most people do.

All those who believe in psycho kinesis, raise my hand.

GeneralRe: button click event Pin
dojohansen8-Jan-10 0:35
dojohansen8-Jan-10 0:35 
GeneralRe: button click event Pin
OriginalGriff8-Jan-10 0:41
mveOriginalGriff8-Jan-10 0:41 
GeneralRe: button click event Pin
Luc Pattyn8-Jan-10 2:09
sitebuilderLuc Pattyn8-Jan-10 2:09 
Questionall form problem? [modified] Pin
miss YY7-Jan-10 19:27
miss YY7-Jan-10 19:27 
AnswerRe: all form problem? Pin
OriginalGriff7-Jan-10 22:32
mveOriginalGriff7-Jan-10 22:32 
QuestionHow to get The Url in the browser's address bar by c#(winform) [modified] Pin
SrhLj7-Jan-10 18:24
SrhLj7-Jan-10 18:24 
AnswerRe: How to get IE address by c#(winform) Pin
Dimitri Witkowski7-Jan-10 19:07
Dimitri Witkowski7-Jan-10 19:07 
GeneralRe: How to get IE address by c#(winform) Pin
SrhLj7-Jan-10 20:25
SrhLj7-Jan-10 20:25 
AnswerRe: How to get The Url in the browser's address bar by c#(winform) Pin
SrhLj7-Jan-10 21:49
SrhLj7-Jan-10 21:49 
JokeRe: How to get The Url in the browser's address bar by c#(winform) Pin
dojohansen8-Jan-10 0:37
dojohansen8-Jan-10 0:37 
AnswerRe: How to get The Url in the browser's address bar by c#(winform) Pin
carlecomm10-Jan-10 20:57
carlecomm10-Jan-10 20:57 
QuestionHow do i get the date, burned speed, manufactorer id of cd or dvd that i was burned? Pin
vinlong907-Jan-10 16:10
vinlong907-Jan-10 16:10 
QuestionConsole.Beep(int,int) uses sound card Pin
Lutosław7-Jan-10 12:13
Lutosław7-Jan-10 12:13 
AnswerRe: Console.Beep(int,int) uses sound card Pin
Expert Coming7-Jan-10 12:20
Expert Coming7-Jan-10 12:20 
GeneralRe: Console.Beep(int,int) uses sound card Pin
Lutosław7-Jan-10 12:32
Lutosław7-Jan-10 12:32 
GeneralRe: Console.Beep(int,int) uses sound card Pin
Expert Coming7-Jan-10 12:43
Expert Coming7-Jan-10 12:43 
AnswerRe: Console.Beep(int,int) uses sound card Pin
DaveyM697-Jan-10 13:06
professionalDaveyM697-Jan-10 13:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.