General information
Category:
Coding, syntax and commands
Title:
How can I hide or minimize windows form?
I have a C# windows form that when you click one of the buttons, it starts another process and waits for it to finish. It works fine. BUT when the process finishes, my form is displayed for a second or two or three, it looks funky! The buttons and other controls are not there and there is leftover crud from the finished process displayed in their place and it just doesn't look professional. Is there a way to avoid this problem or can I hide or minimize the form while the process is runnning and restore it when the process finishes? thanks in advance! Dave
using (Process proc = Process.Start(msiprog, msiparams))
{
if (msiWait)
proc.WaitForExit();
//if(proc.ExitCode == 0) return true;
}
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only