imagebutton used as hyperlink

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

I have an image button that does a few bits and bobs for
me. I want to go to a hyperlink once the button has been
selected, and my vb code has been run. It sounds like
something simple, but I can't figure it out for the life
of me. Is this at all possible? Thanks in advance
tom
 
Look up the ShellExecute API. It can open your default browser to
open a specified page without knowing which browser it is.
I don't think there's a direct solution in dotnet. You could use the
Process class but then you have to specify the browser location by
looking up which app is bound to html/asp/... files and where it is.
Which is a lot more difficult.

Yves

You know about assumptions, right, something about u and umption?

Instead of using ShellExecute, you can use this "direct solution in
dotnet":

ProcessStartInfo psi = new ProcessStartInfo("http://www.microsoft.com/");
psi.UseShellExecute = true;
Process.Start(psi);

Mark
 
found it
system.diagnostics.

cheers
tom
-----Original Message-----


You know about assumptions, right, something about u and umption?

Instead of using ShellExecute, you can use this "direct solution in
dotnet":

ProcessStartInfo psi = new ProcessStartInfo ("http://www.microsoft.com/");
psi.UseShellExecute = true;
Process.Start(psi);

Mark
.
 
Back
Top