|
-
October 24th, 2001, 10:38 AM
#1
How do i load a form?
Hi,
This is such a beginner question, i'm afraid you may laugh at me! You see, i'm a VC++ programmer but i need to write a small VB test program.
How can i load a form ? I have an activex dll which declares a function called 'Load'. In this dll project i also have a splash screen form called frmSplash. I want to display this form when i call the Load function. What line of code do i need in my 'Load' function which will display frmSplash ?
Thanks
Jase
http://www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows.
Jase
www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows....
-
October 24th, 2001, 10:41 AM
#2
Re: How do i load a form?
Nicolas Bohemier
-
October 24th, 2001, 10:42 AM
#3
Re: How do i load a form?
If I got the right idea of your question, you can try this:
frmSplash.Show
Regards,
Michi
-
October 24th, 2001, 10:43 AM
#4
Re: How do i load a form?
frmSplash.Show vbModal
or
frmSplash.show vbModeless
-
October 24th, 2001, 10:50 AM
#5
Re: How do i load a form?
Excellent. Thanks !
Jase
http://www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows.
Jase
www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows....
-
October 24th, 2001, 10:51 AM
#6
Re: How do i load a form?
Thankyou
Jase
http://www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows.
Jase
www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows....
-
October 24th, 2001, 10:52 AM
#7
Re: How do i load a form?
Thanks. What does the '1' mean ? Is it simply the number that represents vbModal or vbModeless ?
Jase
http://www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows.
Jase
www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows....
-
October 24th, 2001, 11:57 AM
#8
Re: How do i load a form?
Use of "Load" as a function probably is not good. "Load" is a reserved word in VB. You might run into naming conflicts.
To get your splash screen to display
frmSplash.show
should display it.
John G
-
October 24th, 2001, 03:33 PM
#9
Re: How do i load a form?
Although all the other replies are correct, I prefer doing it something similar to what you would in C++.
Since the Form is a class I declare a variable of that type then instantiate the object, call the load and show methods and walla.
dim fSplash as frmSplash
set fsplash = new frmSplash
load fsplash
fplash.show
'// Do whatever processing we need to initialise the app
unload fSplash
set fsplash = nothing
That's neat and tidy.
-
October 25th, 2001, 02:20 AM
#10
Re: How do i load a form?
Thanks
Jase
http://www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows.
Jase
www.slideshowdesktop.com
View your images and photos on your desktop with ease using SlideShow Desktop, the desktop wallpaper manager for Microsoft Windows....
-
October 25th, 2001, 07:39 AM
#11
Re: How do i load a form?
Nicolas Bohemier
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|