arijit08.b
Member
- Joined
- Nov 1, 2009
- Messages
- 11
- Programming Experience
- 1-3
I have got the code to create a Hyperlink in a richtextbox, I'll share it with you but to the experts, I have a question...
I need to somehow get the NEWLABEL THAT THE PERSON CLICK!
DO you understand what i want to say? It's damn urgent, ive tried everywhere but all those twits don't understand...
Note: the new smileys suck don't they? I liked the earlier ones better!
VB.NET:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
dim newlabel as new linklabel
newlabel.Text = HYPERLINKNAME.text
newlabel.AutoSize = True
newlabel.Location = Me.RichTextBox1.GetPositionFromCharIndex(Me.RichTextBox1.TextLength)
Me.RichTextBox1.Controls.Add(newlabel)
Me.RichTextBox1.AppendText(newlabel.Text & " ")
Me.RichTextBox1.SelectionStart = Me.RichTextBox1.TextLength
addhandler newlabel.linkclicked, addressof nwlbl_lnkclckd
End Sub
VB.NET:
private sub nwlbl_lnkclckd (byval sender as object, byval e as linklabel.linkclickedeventargs)
process.start(THE-LABEL-WHOSE-LINK-WAS-CLICKED-TO-LAUNCH-THIS-EVENT.name.tostring)
end sub
I need to somehow get the NEWLABEL THAT THE PERSON CLICK!
DO you understand what i want to say? It's damn urgent, ive tried everywhere but all those twits don't understand...
Note: the new smileys suck don't they? I liked the earlier ones better!