?
Solved

richtext url with spaces

Posted on 2004-10-20
4
Medium Priority
?
597 Views
Last Modified: 2012-05-05
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
0
Comment
Question by:RonaldBiemans
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 2000 total points
ID: 12357023
Use "%20" in place of Space
0
 
LVL 25

Author Comment

by:RonaldBiemans
ID: 12357107
That doesn't work, but it gave me an idea on how to make it work, so I'll give you the points
0
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 12366539
So what Idea you came up with???
It might Help Others...

0
 
LVL 25

Author Comment

by:RonaldBiemans
ID: 12367384
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(OFD1.FileName.Replace(" ", "%"))
    End Sub

Private Sub RichTextBox1_LinkClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.LinkClickedEventArgs) Handles RichTextBox1.LinkClicked
        System.Diagnostics.Process.Start(e.LinkText.Replace("%", " "))
    End Sub
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question