Click to See Complete Forum and Search --> : using linklabel
zenimpulse
Jun 30th, 2002, 10:07 PM
i'm trying to use linklabel to link to another form, but I keep getting "Reference to a non-shared member requires an object reference." the label is already created, how can i simply link it?
i tried form2.show()
but i get the error message
hellswraith
Jun 30th, 2002, 10:18 PM
Dim frmTemp As Form2
frmTemp.Show()
Try that... Form2 is a class, you need to create an instance of that class, then you can show it.
zenimpulse
Jun 30th, 2002, 10:26 PM
no, that still doesn't seem to get it... nothing happens now when i click on the label
hmm...
zenimpulse
Jun 30th, 2002, 10:37 PM
i can get it if i use a button, but the original window stays active. (i tried me.close but that only closed everything when i clicked on the button) how can i get form2 to show using the label?
(by the way, another label works for "end" i just put end in it's label2_click code
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.