Click here to Skip to main content
15,891,708 members
Home / Discussions / C#
   

C#

 
GeneralYour post strongly confirms your sign. Pin
CPallini11-Jul-08 7:28
mveCPallini11-Jul-08 7:28 
JokeRe: How to stop... Pin
Paul Conrad11-Jul-08 8:19
professionalPaul Conrad11-Jul-08 8:19 
AnswerRe: How to stop... Pin
Pete O'Hanlon11-Jul-08 8:35
mvePete O'Hanlon11-Jul-08 8:35 
AnswerRe: How to stop... Pin
leppie11-Jul-08 11:19
leppie11-Jul-08 11:19 
QuestionChanging the default font Pin
NiceNaidu11-Jul-08 4:41
NiceNaidu11-Jul-08 4:41 
AnswerRe: Changing the default font Pin
Scott Dorman11-Jul-08 5:16
professionalScott Dorman11-Jul-08 5:16 
QuestionContext disconnected error Pin
Affan Toor11-Jul-08 4:31
Affan Toor11-Jul-08 4:31 
QuestionWhy a disabled button handles a Click Event !! Pin
Sifar - 011-Jul-08 3:29
Sifar - 011-Jul-08 3:29 
Hi,

I ve written a code something like below in Click event of Button btnWindows:

...
...
btnWindows.Enabled = false;
MessageBox.Show("Good Morning!");
for (int i = 1; i <= 500000; i++)
{
for(int j =1; j <= 500;j++)
{

}
}
btnWindows.Enabled = true;
...
...

in above code, instead of inner For loop i ve some calculation that takes about 6 to 7 seconds to finish.
The problem is,
when button gets disabled and message box comes
after that when i click on disabled button ( Or, access it through its Hot Key ) the click event gets fired again and i m wished "Good Morning!".

Waiting for some helpful answers !!
AnswerRe: Why a disabled button handles a Click Event !! Pin
Thomas Stockwell11-Jul-08 3:54
professionalThomas Stockwell11-Jul-08 3:54 
GeneralRe: Why a disabled button handles a Click Event !! Pin
Sifar - 011-Jul-08 4:14
Sifar - 011-Jul-08 4:14 
GeneralRe: Why a disabled button handles a Click Event !! Pin
DaveyM6911-Jul-08 4:34
professionalDaveyM6911-Jul-08 4:34 
GeneralRe: Why a disabled button handles a Click Event !! Pin
Thomas Stockwell11-Jul-08 4:41
professionalThomas Stockwell11-Jul-08 4:41 
AnswerRe: Why a disabled button handles a Click Event !! Pin
PIEBALDconsult11-Jul-08 11:21
mvePIEBALDconsult11-Jul-08 11:21 
Questiondatagrideview and data base Pin
A.firooz11-Jul-08 3:08
A.firooz11-Jul-08 3:08 
AnswerRe: datagrideview and data base Pin
half-life11-Jul-08 11:47
half-life11-Jul-08 11:47 
QuestionFieldInfo.SetValue on nested types Pin
FireFly_7411-Jul-08 2:56
FireFly_7411-Jul-08 2:56 
QuestionHow to Create a Global Variable Pin
Admin88711-Jul-08 2:48
Admin88711-Jul-08 2:48 
AnswerRe: How to Create a Global Variable Pin
carbon_golem11-Jul-08 2:58
carbon_golem11-Jul-08 2:58 
AnswerRe: How to Create a Global Variable Pin
Thomas Stockwell11-Jul-08 3:56
professionalThomas Stockwell11-Jul-08 3:56 
Questionhow to call matlab command from c#? such as figure; plot Pin
Seraph_summer11-Jul-08 2:41
Seraph_summer11-Jul-08 2:41 
QuestionIIS7, provisiong sample and Quota control Pin
SilverAdder11-Jul-08 2:33
SilverAdder11-Jul-08 2:33 
QuestionConvert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 2:32
professionalDaveyM6911-Jul-08 2:32 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
Luc Pattyn11-Jul-08 3:05
sitebuilderLuc Pattyn11-Jul-08 3:05 
GeneralRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
DaveyM6911-Jul-08 3:28
professionalDaveyM6911-Jul-08 3:28 
AnswerRe: Convert ulong to binary i.e. ulong.ToBinaryString() Pin
User 665811-Jul-08 3:08
User 665811-Jul-08 3:08 

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.