Label not showing up on gui form called from within load handler of other form

G

gs_sarge

Hi:

I'm trying to setup a simple message box that displays a message (like
"Exiting Applicaton....). It's a simple form with only one label on
it, displayed in the center.

The label's text is set after initializecomponents is called from the
form's constructor.

I'm trying to use this in other forms. Right now, in the load handler
for another form, I have a warning message. If the user chooses no,
I'd like to have the display message show on the screen for a couple
of seconds before exiting app.

I create an instance of the message form from within the other form's
load handler and call Show().

The form displays on the screen, but where the label should be, is
only a white rectangular area, with no text at all.

Is there some extra precautions needed when calling other forms from
within your form application?

Any advice and/or help is appreciated.

Thanks
 
G

Guest

Hi,

i done the same on initial loading of forms - .net uses a long time for program statup ... - and I have to call refresh after each show command for the small message box.

hope that helps

Thomas
 

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