Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Forms Panel Scrolling Pin
Dave Kreskowiak8-Jan-09 4:39
mveDave Kreskowiak8-Jan-09 4:39 
GeneralRe: C# Forms Panel Scrolling Pin
musefan8-Jan-09 4:57
musefan8-Jan-09 4:57 
GeneralRe: C# Forms Panel Scrolling Pin
#realJSOP8-Jan-09 5:55
professional#realJSOP8-Jan-09 5:55 
GeneralRe: C# Forms Panel Scrolling Pin
musefan8-Jan-09 6:12
musefan8-Jan-09 6:12 
GeneralRe: C# Forms Panel Scrolling Pin
Jon Rista8-Jan-09 7:06
Jon Rista8-Jan-09 7:06 
GeneralRe: C# Forms Panel Scrolling Pin
musefan8-Jan-09 22:13
musefan8-Jan-09 22:13 
QuestionWhat's the best way to check that Pin
CodingLover7-Jan-09 23:46
CodingLover7-Jan-09 23:46 
AnswerRe: What's the best way to check that Pin
Lev Danielyan7-Jan-09 23:55
Lev Danielyan7-Jan-09 23:55 
I would disable the button on starting the process and enable it back when the process is done working.
Like this:


private void button1_Click_1(object sender, EventArgs e) {
   button1.Enabled = false;
   Process proc = new Process();
   proc.StartInfo.FileName = "notepad.exe";                       
   proc.EnableRaisingEvents = true;
   proc.Exited += new EventHandler(proc_Exited);            
            
   proc.Start();
}

void proc_Exited(object sender, EventArgs e) {
   button1.Enabled = true;
}


Regards,
Lev

NewsRe: What's the best way to check that Pin
CodingLover8-Jan-09 0:04
CodingLover8-Jan-09 0:04 
GeneralRe: What's the best way to check that Pin
Lev Danielyan8-Jan-09 0:14
Lev Danielyan8-Jan-09 0:14 
GeneralRe: What's the best way to check that Pin
Dragonfly_Lee8-Jan-09 19:44
Dragonfly_Lee8-Jan-09 19:44 
AnswerRe: What's the best way to check that Pin
Giorgi Dalakishvili8-Jan-09 0:00
mentorGiorgi Dalakishvili8-Jan-09 0:00 
AnswerRe: What's the best way to check that Pin
#realJSOP8-Jan-09 0:04
professional#realJSOP8-Jan-09 0:04 
NewsRe: What's the best way to check that Pin
CodingLover8-Jan-09 0:08
CodingLover8-Jan-09 0:08 
GeneralRe: What's the best way to check that Pin
#realJSOP8-Jan-09 0:23
professional#realJSOP8-Jan-09 0:23 
AnswerRe: What's the best way to check that Pin
sourabhsorate9-Jan-09 23:35
sourabhsorate9-Jan-09 23:35 
Questionadress standardization Pin
lawrenceinba7-Jan-09 23:33
lawrenceinba7-Jan-09 23:33 
AnswerRe: adress standardization Pin
DaveyM697-Jan-09 23:56
professionalDaveyM697-Jan-09 23:56 
QuestionRe: adress standardization Pin
Eddy Vluggen8-Jan-09 0:31
professionalEddy Vluggen8-Jan-09 0:31 
AnswerRe: adress standardization Pin
lawrenceinba8-Jan-09 1:02
lawrenceinba8-Jan-09 1:02 
GeneralRe: adress standardization Pin
Ashfield8-Jan-09 1:31
Ashfield8-Jan-09 1:31 
GeneralRe: adress standardization Pin
lawrenceinba8-Jan-09 1:46
lawrenceinba8-Jan-09 1:46 
GeneralRe: adress standardization Pin
Eddy Vluggen8-Jan-09 1:58
professionalEddy Vluggen8-Jan-09 1:58 
GeneralRe: adress standardization Pin
musefan8-Jan-09 1:49
musefan8-Jan-09 1:49 
GeneralRe: adress standardization Pin
musefan8-Jan-09 1:55
musefan8-Jan-09 1:55 

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.