Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Displaying labels in a pop-up modeless form
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



Report this thread to moderator Post Follow-up to this message
Old Post
Carl Rapson
10-27-04 08:55 PM


Re: Displaying labels in a pop-up modeless form
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..

Report this thread to moderator Post Follow-up to this message
Old Post
Ken Halter
10-27-04 08:55 PM


Re: Displaying labels in a pop-up modeless form
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..



Report this thread to moderator Post Follow-up to this message
Old Post
Carl Rapson
10-27-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:42 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.