Click here to Skip to main content
15,923,219 members
Home / Discussions / C#
   

C#

 
AnswerMessage Closed Pin
22-Oct-09 21:56
stancrm22-Oct-09 21:56 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia22-Oct-09 22:45
Escocia22-Oct-09 22:45 
GeneralMessage Closed Pin
22-Oct-09 23:10
stancrm22-Oct-09 23:10 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Christian Graus22-Oct-09 23:25
protectorChristian Graus22-Oct-09 23:25 
AnswerRe: Form Invisible and Cpu up to 50% Pin
Christian Graus22-Oct-09 22:05
protectorChristian Graus22-Oct-09 22:05 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia22-Oct-09 22:57
Escocia22-Oct-09 22:57 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Christian Graus22-Oct-09 23:23
protectorChristian Graus22-Oct-09 23:23 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia23-Oct-09 0:06
Escocia23-Oct-09 0:06 
Christian Graus wrote:
Escocia wrote:
Form1 miF = new Form1();
FileSystemWatcher Fs = new FileSystemWatcher();
Fs.Created += new FileSystemEventHandler(Fs_Created);
Fs.Path = "c:\\my";
Fs.EnableRaisingEvents = true;
miF.ShowInTaskbar = true;



You never show your form, hence there's no message loop, which is why it closes


Hi, Thanks for your answer again!

I have prove to add the next line (1) and delete the while(true) loop and form is closed...

miF.Show();


Another solution??

Many Many Thanks.
GeneralRe: Form Invisible and Cpu up to 50% Pin
Christian Graus23-Oct-09 0:10
protectorChristian Graus23-Oct-09 0:10 
GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia23-Oct-09 0:39
Escocia23-Oct-09 0:39 
Question[Message Deleted] Pin
sameercodes22-Oct-09 21:33
sameercodes22-Oct-09 21:33 
AnswerRe: WPF toolkit datagrid: Capture Key Press Event Pin
Christian Graus22-Oct-09 21:49
protectorChristian Graus22-Oct-09 21:49 
QuestionDistortion Metafile in Clipboard Pin
alexcmk22-Oct-09 19:18
alexcmk22-Oct-09 19:18 
AnswerRe: Distortion Metafile in Clipboard Pin
Christian Graus22-Oct-09 19:19
protectorChristian Graus22-Oct-09 19:19 
GeneralRe: Distortion Metafile in Clipboard Pin
alexcmk22-Oct-09 21:52
alexcmk22-Oct-09 21:52 
GeneralRe: Distortion Metafile in Clipboard Pin
Christian Graus22-Oct-09 22:06
protectorChristian Graus22-Oct-09 22:06 
GeneralRe: Distortion Metafile in Clipboard Pin
alexcmk26-Oct-09 14:35
alexcmk26-Oct-09 14:35 
GeneralRe: Distortion Metafile in Clipboard Pin
alexcmk27-Oct-09 15:56
alexcmk27-Oct-09 15:56 
Questionmultiple socket connection Pin
Ajithevn22-Oct-09 18:22
Ajithevn22-Oct-09 18:22 
AnswerRe: multiple socket connection Pin
Rick van Woudenberg23-Oct-09 1:07
Rick van Woudenberg23-Oct-09 1:07 
AnswerRe: multiple socket connection Pin
Jimmanuel23-Oct-09 3:16
Jimmanuel23-Oct-09 3:16 
Question[Message Deleted] Pin
Sebastian T Xavier22-Oct-09 18:05
Sebastian T Xavier22-Oct-09 18:05 
AnswerRe: Need to manipulate an excel file using MS Office SDK Pin
Christian Graus22-Oct-09 18:20
protectorChristian Graus22-Oct-09 18:20 
GeneralRe: Need to manipulate an excel file using MS Office SDK Pin
Sebastian T Xavier22-Oct-09 18:44
Sebastian T Xavier22-Oct-09 18:44 
Questionvoice chat Pin
kevinpiper12322-Oct-09 17:30
kevinpiper12322-Oct-09 17:30 

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.