labels in non modal dialog boxes

  • Thread starter Thread starter Laxmikant Rashinkar
  • Start date 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
 
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
 
Back
Top