show vs showdialog vs application.Run

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I’m creating an application that waits for a certain button to be pressed on
the keyboard and pops up a winform. I’d like to instantiate the winform on
application start to increase performance. When the user hits the break key
I’d like to .Show() the form. After the first launch I’d like to be able to
Hide() the form, and any break keys after that just show the original form.
The problem that I’m having is that after I show the form with .Show() the
entire form doesn’t paint, just the few radio buttons that are active.
Anyone else have similar problems? Thanks
 
Eric,

Can you post a compilable sample that demonstrates the problem?
 
Eric said:
I'm creating an application that waits for a certain button to be pressed
on
the keyboard and pops up a winform. I'd like to instantiate the winform
on
application start to increase performance. When the user hits the break
key
I'd like to .Show() the form. After the first launch I'd like to be able
to
Hide() the form, and any break keys after that just show the original
form.
The problem that I'm having is that after I show the form with .Show() the
entire form doesn't paint, just the few radio buttons that are active.
Anyone else have similar problems? Thanks

Send a sample of your source code, than I could see what can I do..

It looks that some objects of your form have been destroyed.. If it's hapen
after you hide your form and than show it again..
I belive that you are working in C#, or maybe I'm wrong..

BR,
Dubravko
 
Back
Top