|
-
Aug 28th, 2007, 07:26 AM
#1
Thread Starter
Fanatic Member
[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
Last edited by CodedFire; Aug 28th, 2007 at 07:48 AM.
Reason: Resolved
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 28th, 2007, 07:29 AM
#2
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.
-
Aug 28th, 2007, 07:36 AM
#3
Thread Starter
Fanatic Member
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.
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 28th, 2007, 07:38 AM
#4
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?
-
Aug 28th, 2007, 07:40 AM
#5
Thread Starter
Fanatic Member
Re: [2005] making a login form persistant
Can that be done, i thought the main form had to be the starting form?
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 28th, 2007, 07:42 AM
#6
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.
-
Aug 28th, 2007, 07:43 AM
#7
Thread Starter
Fanatic Member
Re: [2005] making a login form persistant
Cool, so how do i change it?
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 28th, 2007, 07:45 AM
#8
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.
-
Aug 28th, 2007, 07:47 AM
#9
Thread Starter
Fanatic Member
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!
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 28th, 2007, 09:23 AM
#10
Re: [RESOLVED][2005] making a login form persistant
-
Aug 28th, 2007, 12:38 PM
#11
Thread Starter
Fanatic Member
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.
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 28th, 2007, 01:03 PM
#12
Re: [RESOLVED][2005] making a login form persistant
Post the source in our CodeBank when you are done.
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
|