-
December 22nd, 2011, 01:41 AM
#1
Help me using vb
hi....I make my final project using vb. The problem is that the project can not run because there is a problem. I do not know how to do. Can anyone help me..here code :
Private Sub CmdEnter_Click()
Unload Me
frmMenu.Show -( error this coding )
End Sub
Private Sub Timer1_Timer()
Call CmdEnter_Click
End Sub
-
December 22nd, 2011, 10:42 AM
#2
Re: Help me using vb
Assuming that your code is not in frmMenu, you are unloading your form before you try to execute code, You should be doing that after your code runs not before.
Always use [code][/code] tags when posting code.
-
December 22nd, 2011, 11:10 AM
#3
Re: Help me using vb
Exactly. With other words:
Code:
Private Sub CmdEnter_Click()
frmMenu.Show
Unload Me
End Sub
If an error persists, it would prbobly appear in frmMenu
-
December 23rd, 2011, 02:30 AM
#4
-
December 29th, 2011, 06:17 AM
#5
Re: Help me using vb
I think you want to move from one from to another form. i assume there will be a login from after entering the details, you want to unload current login form and to show frmMenu form.
your code is right but the sequence of executing commands / line of code(s) is wrong.
you should first show the frmMenu and then unload the current form as code below
Private Sub CmdEnter_Click()
frmMenu.Show
Unload Me
End Sub
-
December 29th, 2011, 11:18 AM
#6
Re: Help me using vb
If you want to help, post code. But, use CODE TAGS
-
December 29th, 2011, 11:55 AM
#7
Re: Help me using vb
Yes. And read previous posts, because what you wrote is exactly the same thing as I posted before.
(only I used code tags. )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|