that's right, it is something similar...
but i want is the best or shortest method in making a text linkable to a form.
and what object should i use: a label? a textbox? or ?
that "or ?" is what i am asking... if none, i would stick with my previous code...
OK, you made me think for a minute ...
Here is what you can do:
- set caption for selected label to whatever you want
- set Tag property to be actual form's name that you want to launch
- run the following code and let me know if it works for you:
VB Code:
Option Explicit
Private Sub Form_Load()
Label1.Caption = "Display Summary Form"
Label1.Tag = "Form2"
End Sub
Private Sub Label1_Click()
Dim frm As Form
Set frm = Forms.Add(Label1.Tag)
frm.Show
End Sub
There is a way to set "hand" cursor to a label but that would come later ...
Attached is a hand cursor in both ico and cur format. Just load one of them in the MouseIcon property of the Label and set the MousePointer property to 99-Custom.