hello friends,
how can i perform a label click event using the code only.
like in button we have a code like
me.button1.performclick
is there something like in label
thanks in advance....

You have to subscribe to a Click event of label control:

Public Sub New()
	'constructor
	label1.Click += New EventHandle(AddressOf label1_Click)
End Sub

Private Sub label1_Click(sende As Object, e As EventArgs)
	MessageBox.Show("label clicked.")
End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.