show vs showdialog vs application.Run

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
 
S

Stoitcho Goutsev \(100\) [C# MVP]

Eric,

Can you post a compilable sample that demonstrates the problem?
 
D

Dubravko

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top