cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a hyperlink menu

Former Member
0 Kudos

Hi All,

I want to add a menu in my SBO. When I click the menu item, I want to open a web site like Google.com. I write a fiter to listen the menu click event. I put the code system.Diagnostics.Process.Start("http://www.google.com") to the listener method. But the code don't work. SBO open the url as a file.

Please help me.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If IE is your default browser and you call Process.Start and pass it only a URL, its behaviour depends on the "Reuse windows for launching shortcuts" option on the Advanced tab of the Internet Options dialogue. If that option is ticked then a current window will used to display the new URL if one is open. If that option is not ticked then a new window will always be opened for the new URL whether there is already a window open or not.

OR You can simply use this code

shell "explorer.exe http://vbforums.com"; (you need to have IE installed and it should be set as default browser other wise you can specify any other browser in place of Explorer.exe)

Hope it helps you

Regards

Vishnu

Edited by: Vishnu Kumar Reddy on Jan 17, 2008 11:07 AM

Edited by: Vishnu Kumar Reddy on Jan 17, 2008 11:09 AM

Former Member
0 Kudos

Hi,

Thank you for your information. I try to two solutions you applied. The first one is not work yet even if I tick the option or don't tick the option. The second one is work.

Best Regards,

Liu Ming

Former Member
0 Kudos

please reward points

Regards

Vishnu

Answers (0)