Click to See Complete Forum and Search --> : How do i load a form?
jase jennings
October 24th, 2001, 10:38 AM
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.
Boumxyz2
October 24th, 2001, 10:41 AM
form.show 1
michi
October 24th, 2001, 10:42 AM
If I got the right idea of your question, you can try this:
frmSplash.Show
Regards,
Michi
DSJ
October 24th, 2001, 10:43 AM
frmSplash.Show vbModal
or
frmSplash.show vbModeless
jase jennings
October 24th, 2001, 10:50 AM
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 jennings
October 24th, 2001, 10:51 AM
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 jennings
October 24th, 2001, 10:52 AM
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.
John G Duffy
October 24th, 2001, 11:57 AM
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
phunkydude
October 24th, 2001, 03:33 PM
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.
jase jennings
October 25th, 2001, 02:20 AM
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.
Boumxyz2
October 25th, 2001, 07:39 AM
yes
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.