L
Luhar
Private Sub DoubleClickHandler(ByVal sender As Object, ByVal e As
System.EventArgs) _
Handles TextBox1.DoubleClick, TextBox2.DoubleClick, TextBox3.DoubleClick,
TextBox4.DoubleClick
Dim tb As TextBox = DirectCast(sender, System.Windows.Forms.TextBox)
MsgBox(String.Format("Text in {0}:{1}{2}", tb.Name, Environment.NewLine,
tb.Text), _
MsgBoxStyle.OKOnly Or MsgBoxStyle.Information, "You double-clicked " +
tb.Name)
End Sub
hth,
Luhar
System.EventArgs) _
Handles TextBox1.DoubleClick, TextBox2.DoubleClick, TextBox3.DoubleClick,
TextBox4.DoubleClick
Dim tb As TextBox = DirectCast(sender, System.Windows.Forms.TextBox)
MsgBox(String.Format("Text in {0}:{1}{2}", tb.Name, Environment.NewLine,
tb.Text), _
MsgBoxStyle.OKOnly Or MsgBoxStyle.Information, "You double-clicked " +
tb.Name)
End Sub
hth,
Luhar