Launch IE From Desktop App?

J

Joe

I have a VB.NET desktop application with some reports in SQL Server
Reporting Services, in other words, web reports. I want the user to
be able to press a button in the desktop application and launch the IE
browser and go to a specific link. Can anyone tell me how to do
this?

TIA,
J
 
A

AMercer

You can launch IE like this:
Process.Start("iexplore.exe", "www.whatever.com")
The usual way to do this is to make links clickable and then handle the
LinkClicked event. For example, in a RichTextBox, you can handle LinkClicked
like this:
Process.Start("iexplore.exe", e.LinkText)
In this way, clicking any (of potentially many) clickable links results in
IE going to the right page. Maybe you can adopt this style in your app.
 
F

Family Tree Mike

AMercer said:
You can launch IE like this:
Process.Start("iexplore.exe", "www.whatever.com")
The usual way to do this is to make links clickable and then handle the
LinkClicked event. For example, in a RichTextBox, you can handle LinkClicked
like this:
Process.Start("iexplore.exe", e.LinkText)
In this way, clicking any (of potentially many) clickable links results in
IE going to the right page. Maybe you can adopt this style in your app.

Or better yet, just launch via Process.Start("www.whatever.com"). This
opens the url in whatever browser they prefer to use.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top