all groups > vb.net controls > november 2005 >
You're in the

vb.net controls

group:

Link Label Control


Link Label Control Greg
11/3/2005 1:45:08 PM
vb.net controls: I am attempting to have a link label control on my vb form that will access a
row in a database that is configured as a hyperlink. From a combo box the
user will choose a database item and the relating hyperlink will display to
some website. I have that working, however when the link label is clicked I
get no activity and it does not open up a web page. I've searched for a
solution however the only documentation that I found was to have one static
URL. How do I make this link label call up internet explorer with the
appropiate hyperlink from the database? I am new to programming and finding
my way through this project.

Thanks in advance.

--
Gregory M. Peiguss
Executive Vice-President
Re: Link Label Control S.M. Altaf [MVP]
11/7/2005 12:00:00 AM
Greg,


This really depends on how your application is structure, which I cannot
see.
But what you should be doing is retrieving the URL from the database on your
combobox item change event, and store it in a variable.
The linklabel's click event can have a simple
System.Diagnostics.Process.Start(strUrlVariable) in it.

HTH
Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com


[quoted text, click to view]

AddThis Social Bookmark Button