on 01-17-2008 6:38 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.