Click here to Skip to main content
15,867,985 members
Home / Discussions / C#
   

C#

 
QuestionForm Invisible and Cpu up to 50% Pin
Escocia22-Oct-09 21:51
Escocia22-Oct-09 21:51 
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 
Escocia wrote:
My problem is that the form finish...Sorry, I don't think that always run..


Well, that's not how forms work. They close when you close them.


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


Escocia wrote:
while (true)
{ }


And this is the mess that's killing you.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

GeneralRe: Form Invisible and Cpu up to 50% Pin
Escocia23-Oct-09 0:06
Escocia23-Oct-09 0:06 
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 

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.