GOLDEN2000

I WANT TO MAKE ACCOUNTING PROGRAM AND I MAKE THE FORMS BY VISUAL STUDIO EXPRESS .I MAKE WELCOME SCREEN AND USERNAME+PASSWORD FORM AND MAIN SCREEEN TO THE PROGRAM ...I ASK HOW I CAN JOIN THE FORMS

TO MAKE 1- WELCOME SCREEN COME AND HIDE

2-AND USERNAME+PASSWORD FORM WHEN I FILL HIM HIDE

AND MAIN SCREEN OF THE PROGRAM COME...PLEASE HELP AND GIVE ME EXAMPLE BY VIDEO



Re: Visual Basic Express Edition PLEASSSSSSSSSSSSSSSSSSSSSSSE HELP ME

Solitaire

Why are you shouting Don't you know it's rude to use all uppercase letters






Re: Visual Basic Express Edition PLEASSSSSSSSSSSSSSSSSSSSSSSE HELP ME

Jay Vora

hello..pla write ur problem in clear words n ya not in caps.




Re: Visual Basic Express Edition PLEASSSSSSSSSSSSSSSSSSSSSSSE HELP ME

c_myshock05

form username_load

formusername and password form.show

welcomescreen.hide
main screen.show










Re: Visual Basic Express Edition PLEASSSSSSSSSSSSSSSSSSSSSSSE HELP ME

Martin Cowen

The videos are here. You will find out that there is a lot more to VB than just drawing the forms, that is about 1% of the work. The rest is in writing code that pulls it all together. Not only do you need to show and hide your forms, you need to pass the data into a query which is run on a database, then show some results to the user, allow editing, saving etc. Good luck.





Re: Visual Basic Express Edition PLEASSSSSSSSSSSSSSSSSSSSSSSE HELP ME

Bruno Yu - MSFT

Golden2000,

Thank you for your question here. Please use normal letters to post your question to make it clear.

According to the question, you can start from a Main subroutine. This routine displays a login form. That form returns DialogResult.OK or DialogResult.Cancel depending on whether the user name and password are valid. If the form returns DialogResult.OK, Sub Main displays the program's main form. Note that it displays the form as a dialog so Sub Main doesn't continue executing until that form is closed. If it displayed the form non-modally, Sub Main would continue running, reach the End Sub statement, and the whole program would exit.

Sub Main()

' Display the login dialog.

Dim dlg As New frmLogin

If dlg.ShowDialog() = DialogResult.OK Then

' The user correctly logged in.

' Display the main form.

Dim frm As New frmMain

frm.ShowDialog()

End If

End Sub

Sub Main()

' Display the login dialog.

Dim dlg As New frmLogin

If dlg.ShowDialog() = DialogResult.OK Then

' The user correctly logged in.

' Display the main form.

Dim frm As New frmMain

frm.ShowDialog()

End If

End Sub

Private Sub btnCancel_Click(ByVal sender As Object, ByVal e _

As System.EventArgs) Handles btnCancel.Click

DialogResult = DialogResult.Cancel

End Sub

Private Sub btnOK_Click(ByVal sender As System.Object, _

ByVal e As System.EventArgs) Handles btnOK.Click

' Make sure the user entered something.

If txtUserName.Text.Length = 0 Then

MsgBox("You must enter a user name", _

MsgBoxStyle.Exclamation)

txtUserName.Focus()

ElseIf txtPassword.Text.Length = 0 Then

MsgBox("You must enter a password", _

MsgBoxStyle.Exclamation)

txtPassword.Focus()

ElseIf PasswordInvalid(txtUserName.Text, _

txtPassword.Text) Then

' The user name/password is invalid.

MsgBox("User name/password invalid", _

MsgBoxStyle.Exclamation)

txtUserName.Focus()

Else

' The user name/password is valid.

DialogResult = DialogResult.OK

End If

End Sub

' Put real validation here.

Private Function PasswordInvalid(ByVal user_name As String, _

ByVal password As String) As Boolean

Return (user_name <> password)

End Function

Copyright c 1997-2003 Rocky Mountain Computer Consulting, Inc. All rights reserved.