Helpful Information
 
 
Category: .Net Development
getting VB.net to open a web page on a button click

Hi guys,

Sorry for sounding REALLY dumb, but can anyone help me with this problem?

I've got a form, with several buttons on. What I want to happen, is that when the user clicks on a button, a corresponding web page should appear (either in IE or in a vb form - dont really care at this stage).

Currently, im clicking on the button, and inputting what i thought was the code, but it comes up saying that my webpage isnt defined.

So, could any of you kind folk help my predicament?

Thanks in advance.

Chris

System.Diagnostics.Process.Start("http://www.website.com")

this can be used to open any file in the default program for that extension. this is similar to the ShellExecute API call.

Would that statement still work for files such as word documents, rich text files, bitmaps etc?

Originally posted by nopoints
This can be used to open any file in the default program for that extension.

Hi,

It works beautiful, but when the adminstrator of a network set the rights of users like they may not open webpages from other programs then IE or NETSCAPE it doesn't.

Do someone have a solution for this problem?

Gr
Bommetje :confused:










privacy (GDPR)