473,480 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to create a file link in RichTextBox ?

Hi Friends,

I am creating a application using C#. In that application I am using
RichTextBox (System.Windows.Forms.RichTextBox).

My query is how to create a file link in Rich text box. Means, I want
to embed file in Richtextbox. If the user click / doubleclick /
Ctrl+click the link, that file should open. It is like hyperlink in
HTML.

The suggestion can be in C# or VB.NET.

Thanks in advance,

Kumar
Nov 15 '05 #1
1 7391
set the DectectUrls property to True

if link cliked event write

try

{

System.Diagnostics.Process.Start(e.LinkText);

}

catch (System.Exception e)

{

}

Note the file link should be in the form of an URL

file://C:\Inetpub\wwwroot\test.htm

Nirosh.

"ksskumar" <ks**********@hotmail.com> wrote in message news:ad**************************@posting.google.c om...
Hi Friends,

I am creating a application using C#. In that application I am using
RichTextBox (System.Windows.Forms.RichTextBox).

My query is how to create a file link in Rich text box. Means, I want
to embed file in Richtextbox. If the user click / doubleclick /
Ctrl+click the link, that file should open. It is like hyperlink in
HTML.

The suggestion can be in C# or VB.NET.

Thanks in advance,

Kumar


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
393
by: ksskumar | last post by:
Hi Friends, I am creating a application using C#. In that application I am using RichTextBox (System.Windows.Forms.RichTextBox). My query is how to create a file link in Rich text box. ...
1
12191
by: Andrew Chanter | last post by:
I am writing a little routine to perform the following operations from an Acces 97 mdb: 1. create a fixed width text file 2. create/establish a table type link to the text file in Access 3....
0
1450
by: Justin Creasy | last post by:
I am having a problem with creating file links in a RichTextBox. The problem occurs when there is a space in the name of a folder in the path. So if I have string path = "C:\\My Documents";...
2
2096
by: shefbhoy | last post by:
Hello, Ive got a problem, i want to create a link within the flash document so that it takes me to another flash document. When clicking on the link the document should open within a flash...
1
3192
by: Mayilsamy | last post by:
hai, hai i need some information about how to load the pdf file in richtextbox using vb.net.
2
1417
by: Mayilsamy | last post by:
hi , I need the information about How to load the file in richtextbox control using vb.net .
1
1288
by: kevlee | last post by:
Hi. I'm pretty new to XSL and I need some help. I know I can create a text output from XSL below... ****************************************** <?xml version="1.0" ?> <xsl:stylesheet...
1
1416
by: BD | last post by:
This is probably fairly simple but I've looked at so much code an the last few days that my brain is fried. In the past I had an HTML page that contained a lot of code items and each item was...
1
3043
by: Khushboo Modi | last post by:
i have searched the code to display the .doc file in RichTextBox in c#..... the code works but it shows only the text in RichTextBox not the images or shapes which are in that .doc file.... Is...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7043
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7081
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6921
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4776
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.