Click here to Skip to main content
15,912,507 members
Home / Discussions / C#
   

C#

 
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 
Hello, Here is the code

private void button3_Click(object sender, EventArgs e)
{
button3.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)
{

myDelgate d = new myDelgate(enableBtn);
this.Invoke(d);
}
void enableBtn()
{
button3.Enabled = true;
}

Remember u should add the statement

public delegate void myDelgate();

inside the class which declare a delegate


I hav sucessfully disable the button on starting notepad and enable afte exiting the notepad

hope this code will help you.
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 
GeneralRe: adress standardization Pin
Eddy Vluggen8-Jan-09 1:55
professionalEddy Vluggen8-Jan-09 1:55 
GeneralRe: adress standardization Pin
lawrenceinba8-Jan-09 2:02
lawrenceinba8-Jan-09 2:02 
GeneralRe: adress standardization Pin
Eddy Vluggen8-Jan-09 3:39
professionalEddy Vluggen8-Jan-09 3:39 
GeneralRe: adress standardization Pin
lawrenceinba8-Jan-09 4:34
lawrenceinba8-Jan-09 4:34 
AnswerRe: adress standardization Pin
Henry Minute8-Jan-09 1:44
Henry Minute8-Jan-09 1:44 
QuestionWeb Browser Control events Pin
Nagaraj Muthuchamy7-Jan-09 23:25
professionalNagaraj Muthuchamy7-Jan-09 23:25 
QuestionHow to open a excel2007 file in read-only mode? Pin
llllllkk7-Jan-09 23:22
llllllkk7-Jan-09 23:22 
AnswerRe: How to open a excel2007 file in read-only mode? Pin
EliottA8-Jan-09 2:37
EliottA8-Jan-09 2:37 

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.