473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

App Startup

OK, here's what I need to do...

Start my app from Sub Main()
In Sub Main(), display a login dialog. This dialog creates a singleton User
object which contains all the code necessary to authenticate. The user
object is global to the entire application. This will need to loop until the
user logs in or cancels.
If the login succeeds, I need to display a splash screen while the app is
performing the necessary startup processes. The user may cancel the login,
in which case I need to exit the app.
If the startup processes complete, then I need to load the main MDI parent
form and unload the splash. If they fail, I exit the app.

What's the reccommended way of going about this?

Thanks..
Mar 14 '07 #1
1 1490
The way I did this..and i dont know if it is right... is like this:

I have an MDI form...

In the begining I have a splash screen display.

Then the main MDI form displays.
On the MDI form I put a timer, and i set it to 1 second and "Enabled".
On the 1 second hit of the timer, i disable the timer and display my login
screen showmodal.
That way, my mdi form is displayed - and is my main form, and my login form
is now part and called from the main form.

-Curious as to how others have done it.
My goal was to have the MDI app open when the Login screen is open, so if
the guy clicks cancel on the Login screen,
he has the BASIC - UN-LOGGED IN menu in the main MDI app.
Miro

"Michael White" <xx*@yyy.comwrote in message
news:Ot**************@TK2MSFTNGP02.phx.gbl...
OK, here's what I need to do...

Start my app from Sub Main()
In Sub Main(), display a login dialog. This dialog creates a singleton
User object which contains all the code necessary to authenticate. The
user object is global to the entire application. This will need to loop
until the user logs in or cancels.
If the login succeeds, I need to display a splash screen while the app is
performing the necessary startup processes. The user may cancel the login,
in which case I need to exit the app.
If the startup processes complete, then I need to load the main MDI parent
form and unload the splash. If they fail, I exit the app.

What's the reccommended way of going about this?

Thanks..

Mar 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: robert walker | last post by:
hi all, to my webapp named mrf, i have added load-on-startup tag to mrf\WEB-INF\web.xml so i added a snippet like so <servlet> <servlet-name>loadDbProperties</servlet-name>...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
1
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus...
6
by: Ramaraj | last post by:
Hi All, I am very interest to know the c-startup routine (like GNU gcc C-startup routine). and it s working principle and How this function is attached to operating system Thanks in...
1
by: Locke Nash Cole | last post by:
I'm making a utility similar to MSConfig, I've found it easy enough to obtain the startup items from the registry for the current user and local machine... but what about the Startup folder on the...
4
by: Johnnie Miami | last post by:
I'm using VB.Net 2005 beta 2 and have my login form (login.vb) specified as the startup form. If the user is successful logging in, I call my main form (main.vb). This all works fine but the...
10
by: Bernie Hunt | last post by:
This is probably a silly question, but I've gotten myself confused. My app has two forms, form1 and form2. form1 is the start up object in the propers. An event in form1 instantiates form2. ...
8
by: cj | last post by:
In 2003 I sometimes changed the startup object of a project to Sub Main which was found in Module1.vb. I upgraded one such project to 2005 and I notice in the properties page for the project that...
2
shek124
by: shek124 | last post by:
I want to run a windows startup program. here my code: Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal Hkey As Long) As Long Public Declare Function RegCreateKey Lib...
0
by: ycinar | last post by:
hey all, i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict.. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.