Click here to Skip to main content
15,890,043 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why I nominated your account as abusive. Pin
Pete O'Hanlon5-Nov-12 5:24
mvePete O'Hanlon5-Nov-12 5:24 
GeneralRe: Why I nominated your account as abusive. Pin
Cristian Capannini5-Nov-12 5:26
Cristian Capannini5-Nov-12 5:26 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Eddy Vluggen5-Nov-12 3:14
professionalEddy Vluggen5-Nov-12 3:14 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini5-Nov-12 21:46
Cristian Capannini5-Nov-12 21:46 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Eddy Vluggen5-Nov-12 23:40
professionalEddy Vluggen5-Nov-12 23:40 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini5-Nov-12 23:44
Cristian Capannini5-Nov-12 23:44 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Eddy Vluggen5-Nov-12 23:54
professionalEddy Vluggen5-Nov-12 23:54 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini6-Nov-12 0:16
Cristian Capannini6-Nov-12 0:16 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Eddy Vluggen6-Nov-12 0:23
professionalEddy Vluggen6-Nov-12 0:23 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini6-Nov-12 0:35
Cristian Capannini6-Nov-12 0:35 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini6-Nov-12 4:57
Cristian Capannini6-Nov-12 4:57 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini6-Nov-12 21:24
Cristian Capannini6-Nov-12 21:24 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini6-Nov-12 2:40
Cristian Capannini6-Nov-12 2:40 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Eddy Vluggen6-Nov-12 2:42
professionalEddy Vluggen6-Nov-12 2:42 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Cristian Capannini6-Nov-12 2:46
Cristian Capannini6-Nov-12 2:46 
GeneralRe: Create a button in the context menu for each selected contact. Pin
Eddy Vluggen6-Nov-12 3:04
professionalEddy Vluggen6-Nov-12 3:04 
QuestionProblem with Excel WorksheetFunction.Growth in c# Pin
Ross R4-Nov-12 23:17
Ross R4-Nov-12 23:17 
Questionavoid double click Pin
neeraj@max4-Nov-12 20:06
neeraj@max4-Nov-12 20:06 
AnswerRe: avoid double click Pin
OriginalGriff4-Nov-12 20:34
mveOriginalGriff4-Nov-12 20:34 
The problem is that the button click event is happening almost immediately - so the second "click" is going to the correct place - the control at that position on the "new" panel. And that will generate a click event for the new button because that is exactly what should happen.
If you want to stop it, then
1) Create a class level variable:
C#
private DateTime lastSwap = DateTime.Now;

2) In the Button1 click handler, set it:
lastSwap = DateTime.Now;
And then swap panels.
3) In the Button2 click handler, check it and ignore if too soon:
if (DateTime.Now < lastSwap.AddMilliseconds(500)) return;

You can change the 500 to any value you think reasonable - 500 provides half a second.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

GeneralRe: avoid double click Pin
neeraj@max4-Nov-12 21:09
neeraj@max4-Nov-12 21:09 
GeneralRe: avoid double click Pin
J4amieC4-Nov-12 21:27
J4amieC4-Nov-12 21:27 
GeneralRe: avoid double click Pin
neeraj@max4-Nov-12 23:25
neeraj@max4-Nov-12 23:25 
GeneralRe: avoid double click Pin
Pete O'Hanlon5-Nov-12 0:30
mvePete O'Hanlon5-Nov-12 0:30 
GeneralRe: avoid double click Pin
J4amieC5-Nov-12 1:27
J4amieC5-Nov-12 1:27 
GeneralRe: avoid double click Pin
neeraj@max5-Nov-12 1:43
neeraj@max5-Nov-12 1:43 

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.