[RESOLVED][2005] making a login form persistant
Hi guys,
Quick one for ya, I have made a login for for a small app im doing. The problem is the window can be ignored by the user. How can i code it so they have to enter their correct username and password before having access to the rest of my app.
Thanks
Re: [2005] making a login form persistant
How is the app structured?
When the login screen is displayed, what else has happened behind the scences that you don't want them to have access to unless they login?
It would seem to me that nothing should happen until after the login so if they choose to ignore the screen, fine......they won't be able to do anything.
But, if your program has already established connections, and loaded other screens, then ignoring your login screen would have no impact on them.
Re: [2005] making a login form persistant
I was using a custom control in a panel that way the login control was the first thing they seen and could not bypass it. But i have 3 screens i need displayed (login, dataview, dataedit) and can't seem to load and unload them into the panel.
I decided to make a login form (the main form is already in use) so as you can imagine the user can just close the form or minimise it and use the app.
I would prefer my original way of using custom controls but as i said i cant get the panel control to close one and open another of my choice.
Re: [2005] making a login form persistant
Why can't you set your login form as the StartUp form, and have the login form call whatever needs to be called if the login is successful?
Re: [2005] making a login form persistant
Can that be done, i thought the main form had to be the starting form?
Re: [2005] making a login form persistant
You could put your AboutBox form as the startup form if you want. VB doesn't care.
If fact, VB has no clue what the startup form should until you tell it what it should be, and you can change your mind on that anytime you want.
Re: [2005] making a login form persistant
Cool, so how do i change it?
Re: [2005] making a login form persistant
Project/Properties
Click on Application
It is the second combo box down on the left. You will see it.
Re: [2005] making a login form persistant
Thanks man, i should have the app finished by the end of the week id like to post it and get some comments on my code!
Re: [RESOLVED][2005] making a login form persistant
Re: [RESOLVED][2005] making a login form persistant
Only a simple app compared to what most guys here can make, It stores cd key numbers along with the program name. I know it may be simple but there is alot going into it (For my current lvl anyway). I plan on making it very polished looking too (Hence the icon thread) and make it freeware.
Re: [RESOLVED][2005] making a login form persistant
Post the source in our CodeBank when you are done.