Hello:
New to the group here. I've been dabbling in C# for several months.
I have a column of contacts consisting of telephone numbers, email
addresses, and URLS. What's a good way to allow a user to double
click on a contact address and bring up an email client (address
filled in, of course) or a web page, depending on the link type?
The way I can see to do it is to apply a HitTest to the DataGrid,
check the type of link it is, and then call the appropriate
application. Is there an easier, more built-in way?
Thanks,
Ken 3 1052
Yes, you can use HitTest() to find the column clicked and based on its text,
do:
Process.Start ("mailto:<email id>?Subject=sub text");
OR
Process.Start ("<URL>");
HTH.
"Ken Loomis" <no*************@nodomain.com> wrote in message
news:36********************************@4ax.com...
Hello:
New to the group here. I've been dabbling in C# for several months.
I have a column of contacts consisting of telephone numbers, email
addresses, and URLS. What's a good way to allow a user to double
click on a contact address and bring up an email client (address
filled in, of course) or a web page, depending on the link type?
The way I can see to do it is to apply a HitTest to the DataGrid,
check the type of link it is, and then call the appropriate
application. Is there an easier, more built-in way?
Thanks,
Ken
On Wed, 20 Jul 2005 21:40:41 +0530, "Siva M"
<sh******@online.excite.com> wrote: Yes, you can use HitTest() to find the column clicked and based on its text, do:
Process.Start ("mailto:<email id>?Subject=sub text"); OR Process.Start ("<URL>");
HTH.
OK. Thanks a lot for the reply.
Ken "Ken Loomis" <no*************@nodomain.com> wrote in message news:36********************************@4ax.com.. . Hello:
New to the group here. I've been dabbling in C# for several months.
I have a column of contacts consisting of telephone numbers, email addresses, and URLS. What's a good way to allow a user to double click on a contact address and bring up an email client (address filled in, of course) or a web page, depending on the link type?
The way I can see to do it is to apply a HitTest to the DataGrid, check the type of link it is, and then call the appropriate application. Is there an easier, more built-in way?
Thanks,
Ken
On Wed, 20 Jul 2005 21:40:41 +0530, "Siva M"
<sh******@online.excite.com> wrote: Yes, you can use HitTest() to find the column clicked and based on its text, do:
Process.Start ("mailto:<email id>?Subject=sub text"); OR Process.Start ("<URL>");
HTH.
OK. Thanks a lot for the reply.
Ken "Ken Loomis" <no*************@nodomain.com> wrote in message news:36********************************@4ax.com.. . Hello:
New to the group here. I've been dabbling in C# for several months.
I have a column of contacts consisting of telephone numbers, email addresses, and URLS. What's a good way to allow a user to double click on a contact address and bring up an email client (address filled in, of course) or a web page, depending on the link type?
The way I can see to do it is to apply a HitTest to the DataGrid, check the type of link it is, and then call the appropriate application. Is there an easier, more built-in way?
Thanks,
Ken
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ruy Castelli |
last post by:
Hello,
I'm trying to get the details out of a datagrid component and it works fine
when I'm accessing the first page of the datagrid, but when I try to click
on the details hyperlink for an item...
|
by: John |
last post by:
Hi all,
My app contains a datagrid with hyperlinks inside and these hyperlinks all
point back to the same page. The problem is that I have a 'search' user
control and the viewstate changes once...
|
by: Trint Smith |
last post by:
Can a datagrid have thumbnails and hyperlinks?
Does anyone have a good sample of that?
And is a datagrid better than results pages on searches of a sql server
database?
Thanks,
Trint
.Net...
|
by: Jason L James |
last post by:
Hi all,
I have datagrid with a column that is to contain hyperlinks
to other documents. The is in the columns from a bound
data source but I would like to format them as hyperlinks
so that I...
|
by: Bishoy George |
last post by:
I have a database table with many columns:
ItemID , ItemName , ItemLink , ItemSize
I want to display items through a datagrid or whatever in the way that the
ItemName is written and has the...
|
by: rcoco |
last post by:
Hi all,
I have two datagrid, one has a list of allowed user of the second
datagrid. The second datagrid is an inserting datagrid and it Function
properly. Now where my problem is I need to be able...
|
by: rcoco |
last post by:
Hi all,
I have this big problem with hyperlinks I would appriciate any help
please.
My web site has two datagrids on the same page. And one has a list of
names of the users which are in form of...
|
by: =?Utf-8?B?S3VtYXIuQS5QLlA=?= |
last post by:
HI
I want to disable the underline of a hyperlink text in a hyperlink column of
datagrid/gridview in the content page.
If I am writing a css class to disable it in the master page then its...
|
by: Jonathan |
last post by:
In the sample code below, how do I make the various text items in a datagrid
column have a clickable hyperlinks?
e.g. Ford Mustang
should be a link to www.mysite.com/mustang.htm
</head>
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |