RonaldBiemans
asked on
richtext url with spaces
I have a richtextbox with detecturl true.
I want to add file link to that richtextbox, this is no problem aslong as the filename or directory name doesn't include spaces
does anybody know if it is possible to do this if the name does include spaces
I want to add file link to that richtextbox, this is no problem aslong as the filename or directory name doesn't include spaces
does anybody know if it is possible to do this if the name does include spaces
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So what Idea you came up with???
It might Help Others...
It might Help Others...
ASKER
Arif_eqbal, You are right. I just replaced the space with another character and then replaced it back when I call the e.linktext, like
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
OFD1.ShowDialog()
RichTextBox1.AppendText(OF D1.FileNam e.Replace( " ", "%"))
End Sub
Private Sub RichTextBox1_LinkClicked(B yVal sender As Object, ByVal e As System.Windows.Forms.LinkC lickedEven tArgs) Handles RichTextBox1.LinkClicked
System.Diagnostics.Process .Start(e.L inkText.Re place("%", " "))
End Sub
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
OFD1.ShowDialog()
RichTextBox1.AppendText(OF
End Sub
Private Sub RichTextBox1_LinkClicked(B
System.Diagnostics.Process
End Sub
ASKER