| Author |
Displaying labels in a pop-up modeless form
|
|
| Carl Rapson 2004-10-27, 3:55 pm |
| I'm sure this is something stupid, but my brain isn't working today. I have
a pop-up form that I want to display while some background processes are
occurring. The form has a couple of label fields that I fill in at run time.
Here is the code I am using:
set frm = New frmWait
frm.lblAppName.Caption = appname
frm.lblOldVersion.Caption = version
frm.lblNewVersion.Caption = refver
frm.Show
... do processing here ...
Unload frm
The problem is, when frm is displayed all I see is the form border; the
window area is empty. I've tried all the different border styles and nothing
made a diference. The only way I have found to display the label fields is
to display the form as modal:
frm.Show vbModal
But this defeats my purpose; the user has to close the modal form before
processing continues. What am I doing wrong?
Thanks,
Carl Rapson
| |
| Ken Halter 2004-10-27, 3:55 pm |
| Carl Rapson wrote:
> frm.lblOldVersion.Caption = version
> frm.lblNewVersion.Caption = refver
> frm.Show
DoEvents 'allow the screen to catch up
> ... do processing here ...
> Unload frm
--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
| |
| Carl Rapson 2004-10-27, 3:55 pm |
| Thanks, Ken. I knew it was something simple I was overlooking.
Carl
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:OMiUhwDvEHA.3840@TK2MSFTNGP12.phx.gbl...
> Carl Rapson wrote:
> DoEvents 'allow the screen to catch up
>
> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> Please keep all discussions in the groups..
|
|
|
|