[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

richtext url with spaces

Posted on 2004-10-20
4
Medium Priority
?
600 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

656 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