labels in non modal dialog boxes

  • Thread starter Laxmikant Rashinkar
  • Start date
L

Laxmikant Rashinkar

Hello,

from inside a button handler, I am launching a dialog box that contains
lables and text boxes.
The dialog box is launched using dlg.Show(). In this situation the contents
of the text boxes are
visible but not the contents of the label. They become visible only after
the button handler returns.

If the dialog box is launched as dlg.ShowDialog() than everything is visible
but further execution of
the button handler stops (obviously) till the dialog returns.

Is there a solution to using dlg.Show() and yet have all the labels display
correctly?

all help appreciated.
thanks
LK
 
A

AlexS

You might have a problem with button handler - as you say. Try to comment it
out and check behavior.
Looks like you do something when Show executes in some of form events, which
prevents normal paint. Maybe even simple DoEvents after Show will help...

HTH
Alex
 

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