Results 1 to 12 of 12

Thread: [RESOLVED][2005] making a login form persistant

  1. #1

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  3. #3

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    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

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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?

  5. #5

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    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

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  7. #7

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    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

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  9. #9

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    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

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [RESOLVED][2005] making a login form persistant

    What does it do?

  11. #11

    Thread Starter
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    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

  12. #12
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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
  •  



Click Here to Expand Forum to Full Width