Re: load form in vb.net

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm going to recommend that you avoid starting an app by running a form.
There is no upside to doing this and you're experiencing the downside. :-)

Declare a PUBLIC Sub Main() and have that be the starting point. Then you
have complete control of what happens and when.

Public Shared Sub Main(ByVal args() as String)

' show the splash screen
' load the user settings initialize stuff
' hide the splash screen

' if everything is okay so far

' show the login dialog
' if the login is successful
' run the main form
' end if

' end if

You have a chance to get the command line arguments (if there are any) and
you can display and hide the splash screen at will. You also have the user
settings prior to anything much else happening which might contain settings
for screen positions, colors, sounds, server name, etc. And the main screen
isn't loaded until the login is successful.

Re: your splash screen timing. I wrote a SplashScreen class that does it
all for me but basically you set the "minimum" time you want it to display
as you display it. There is no reason to set up any kind of timer at that
point but you do make note of the time it was displayed. When you go to
close the splash screen the routine first checks to see if the
initialization took longer than the minimum time (check the time now against
the time you saved). If it is over the minimum it goes ahead and closes the
screen if it is less than the minimum it goes to sleep for the remaining
amount of time and then closes it.

Hope this helps,
Tom


"Mitch5713" <mitch@xxxxxxxx> wrote in message
news:F9910603-6545-4732-8374-5FB883735D76@xxxxxxxxxxxxxxxx
I've got tthree forms at start up
splashscreen- works fine however how do i set the time delay so it stays
on
the window longer,, shows longer??
Loginscreen- works fine, after the data processing of username etc is done
I
then need to load, call whatever the syntax is the mainForm at the end of
the
loginscreen..????? how is that done so it starts at the mainForm_Load
procedure??? As it stands now the mainform loads but just for a split
second??>>

MItch


.



Relevant Pages

  • Re: desktop colors
    ... minimal settings - w/out hardware acceleration etc. ... A clean/clean XP reinstall implies wiping the partition/drive clean - ... > able to login without a problem. ... I have tried changing the settings at display properties, ...
    (microsoft.public.windowsxp.newusers)
  • sshd_config / failed authentication
    ... sshd_config have to be changed to allow login from an ssh client ... My client, putty in this case display the login: ... I did man sshd_config and changed some settings despite not ...
    (freebsd-questions)
  • Start Up Programs
    ... Whenever I login, ... considerable time to proceed & display the desktop. ... the list of processes in the Task Manager without explicitly starting ... option to load their respective processes automatically ...
    (microsoft.public.windowsxp.general)
  • Re: Login starts then returns to Initial screen
    ... What you say happens in a login starting to load but then bailing, ... out of the system32 folder as on loging i was prompted with the choose app ... for login, submit,and my settings start to load but then i gat the saving ...
    (microsoft.public.win2000.security)
  • Re: Telnet/SSH Terminal Help
    ... The display is much better but still not perfect. ... each login and for each user? ... Well, honestly, I have no idea what any of those settings do. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)