|
-
Feb 5th, 2008, 03:33 AM
#1
Thread Starter
Addicted Member
Reference
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Main.Hide()
Prenos.Show()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Main.Hide()
Sistem.Show()
End Sub
I have those forms sistem,prenos a their design but project show me two errors:
Where is problem
Main.Hide()-Expression does not produce a value.
Prenos.Show() -Reference to a non-shared member requires an object reference.
How to resolve that ,is there problem with reference ,which to use?
-
Feb 5th, 2008, 09:03 AM
#2
Frenzied Member
Re: Reference
Hi,
to show a form do similar to
Dim frmSistem as new Sistem
frmSistem.show
or
frmSistem.ShowDialog
You could also do frmSistem.Hide if you do this.
Pete
-
Feb 5th, 2008, 09:59 AM
#3
Thread Starter
Addicted Member
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
|