Click here to Skip to main content
16,007,932 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Resize / Reduce / shrink Image Size Pin
John Weinhold6-May-08 10:26
John Weinhold6-May-08 10:26 
QuestionGUI Problems Pin
Tauseef A6-May-08 1:15
Tauseef A6-May-08 1:15 
AnswerRe: GUI Problems Pin
Christian Graus6-May-08 2:00
protectorChristian Graus6-May-08 2:00 
QuestionAcces Denied Pin
Zaegra6-May-08 0:36
Zaegra6-May-08 0:36 
AnswerRe: Acces Denied Pin
Eduard Keilholz6-May-08 1:02
Eduard Keilholz6-May-08 1:02 
GeneralRe: Acces Denied Pin
Zaegra6-May-08 4:09
Zaegra6-May-08 4:09 
GeneralRe: Acces Denied Pin
Eduard Keilholz6-May-08 4:45
Eduard Keilholz6-May-08 4:45 
QuestionLogin Form cannot be hiden VS 2003 Pin
Vimalsoft(Pty) Ltd5-May-08 23:21
professionalVimalsoft(Pty) Ltd5-May-08 23:21 
Good Morning All

I have a Login(frmlogin) form and an MDI form(frmmain), i have a Function that check against the DB if the username and password exists and if they do, it will return '1', if it ruturns '1', i will know that the login is valid, and i will have to Close the login form and show the main Window. in my Application "frmlogin" is a Startup form. i have written the explain procedure like this.

Dim frmmain As New frmmain<br />
<br />
        Dim strusername As String = txtusername.Text<br />
<br />
        Dim strPassword As String = txtpassword.Text<br />
<br />
        Dim obj As New BLL.Client<br />
<br />
        Dim bl As Integer<br />
<br />
        Try<br />
            bl = obj.Check_Login(strusername, strPassword)<br />
<br />
            If bl = 1 Then<br />
                frmmain.Show()<br />
<br />
                frmLogin.ActiveForm.Close()<br />
<br />
            Else<br />
<br />
                MessageBox.Show("Invalid Login")<br />
<br />
            End If<br />
<br />
        Catch ex As Exception<br />
<br />
            MessageBox.Show(ex.Message)<br />
<br />
        End Try


This is the code in my "frmlogin", My problem is that when the login is Valid, The frmmain window is Shown, but the login does not Disappear.

What is the Problem?

Thanks

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


AnswerRe: Login Form cannot be hiden VS 2003 Pin
~V~6-May-08 0:42
~V~6-May-08 0:42 
GeneralRe: Login Form cannot be hiden VS 2003 Pin
Vimalsoft(Pty) Ltd6-May-08 2:16
professionalVimalsoft(Pty) Ltd6-May-08 2:16 
AnswerRe: Login Form cannot be hiden VS 2003 Pin
Mohanraj D6-May-08 0:44
Mohanraj D6-May-08 0:44 
QuestionDeploy Application Pin
~V~5-May-08 22:48
~V~5-May-08 22:48 
AnswerRe: Deploy Application Pin
Vimalsoft(Pty) Ltd5-May-08 23:28
professionalVimalsoft(Pty) Ltd5-May-08 23:28 
GeneralRe: Deploy Application Pin
~V~5-May-08 23:48
~V~5-May-08 23:48 
GeneralRe: Deploy Application Pin
Vimalsoft(Pty) Ltd5-May-08 23:51
professionalVimalsoft(Pty) Ltd5-May-08 23:51 
QuestionProblem with Connection String Pin
garga15-May-08 20:44
garga15-May-08 20:44 
AnswerRe: Problem with Connection String Pin
Christian Graus5-May-08 21:57
protectorChristian Graus5-May-08 21:57 
GeneralRe: Problem with Connection String Pin
garga15-May-08 22:11
garga15-May-08 22:11 
GeneralRe: Problem with Connection String Pin
Anoop Brijmohun5-May-08 22:53
Anoop Brijmohun5-May-08 22:53 
GeneralRe: Problem with Connection String Pin
Rupesh Kumar Swami6-May-08 0:17
Rupesh Kumar Swami6-May-08 0:17 
GeneralRe: Problem with Connection String Pin
Dave Kreskowiak6-May-08 1:12
mveDave Kreskowiak6-May-08 1:12 
GeneralRe: Problem with Connection String Pin
garga16-May-08 3:22
garga16-May-08 3:22 
Questiondatetimepicker Pin
lingareddy5-May-08 18:39
lingareddy5-May-08 18:39 
AnswerRe: datetimepicker Pin
Dave Kreskowiak5-May-08 19:05
mveDave Kreskowiak5-May-08 19:05 
AnswerRe: datetimepicker Pin
Mohanraj D6-May-08 0:51
Mohanraj D6-May-08 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.