Jump to content

VB .NET Login Form - Help needed


runesmithie

Recommended Posts

I'm trying to make a login form for a verrry basic app I am making in my Ind. Study time at school, but I can't seem to find the code to do the job. I've done it on VB 6, but have yet to see it in VB .NET

 

 

 

 

 

 

 

The code I am looking for is the one that hides a form and shows another form. I have already tried the help feature and looked in my book (although, the book is more of a .NET programming book, and the function may be a VB specific one?)

 

 

 

 

 

 

 

If you need any more details/want the program/source, just say so

smithie3.jpg

I just posted something! ^_^ to the terrorist...er... kirbybeam.
Link to comment
Share on other sites

MyOtherForm.Hide()



PassWordForm.Show()

 

 

 

 

 

 

 

You mean like that? :)

 

 

 

 

 

 

 

Then in the handling of a correct login, you can just do:

 

 

 

 

 

 

 

PassWordForm.Close()



MyOtherForm.Show()

Link to comment
Share on other sites

MyOtherForm.Hide()



PassWordForm.Show()

 

 

 

 

 

 

 

You mean like that? :)

 

 

 

 

 

 

 

Then in the handling of a correct login, you can just do:

 

 

 

 

 

 

 

PassWordForm.Close()



MyOtherForm.Show()

 

 

 

 

 

 

 

I think I tried that already :?

 

 

 

Ah well, can't hurt to try again

smithie3.jpg

I just posted something! ^_^ to the terrorist...er... kirbybeam.
Link to comment
Share on other sites

Here, I ended up using this

 

 

 

 

 

 

 

Dim passwordForm As New uiPasswordForm



Me.ActiveForm.Hide()



passwordForm.Show()

 

 

 

 

 

 

 

Another problem was that my form files were in different projects, so I had to import one :P

smithie3.jpg

I just posted something! ^_^ to the terrorist...er... kirbybeam.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.