me.settings isnt apart of form1

me.settings isnt apart of form1

i have multiple forms, but my startup is my applications form not the login

but heres my code for my login

Public Class Login Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click     If TextBox1.Text = My.Settings.Username And     TextBox2.Text = My.Settings.Password Then         MsgBox("Works!") 

me.settings.Loggedin = true Else MsgBox("Missing Username or Password", MsgBoxStyle.Information, "Error")

    End If End Sub Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked     CreateAccount.Show()     Me.Close() End Sub  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click     Me.Close() End Sub 

End Class

i dont get whats the problem

Replay

So you want the LOGIN FORM to be loaded first... then if the username and password are matching, then the APPLICATION FORM will be loaded? If so, then you have to go to the project's properties and change the STARTUP FORM from your APPLICATION FORM's name into the LOGIN FORM's name.

Category: vb.net Time: 2016-07-31 Views: 0
Tags: vb.net basic

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.370 (s). 12 q(s)