how to open a URL in VB 2010

janu123

Member
Joined
Mar 11, 2012
Messages
8
Programming Experience
Beginner
hi...

i have a menu strip ..and on that menu strip theres a menu item Manual...So when you click on it i need to open the manual uploaded in a server.

i used this code

Shell("c:/program files/internet explorer/iexplore.exe http://www.XXXXXXX.org/manual.pdf")

well this works but it does not open IE instead the page gets loaded and IE stays minimized, so if you wanna view the webpage u need to click on IE
which then maximizes displaying it.

how can i get IE to pop out and display the webpage ???

thank you
 
hi...

i have a menu strip ..and on that menu strip theres a menu item Manual...So when you click on it i need to open the manual uploaded in a server.

i used this code

Shell("c:/program files/internet explorer/iexplore.exe http://www.XXXXXXX.org/manual.pdf")

well this works but it does not open IE instead the page gets loaded and IE stays minimized, so if you wanna view the webpage u need to click on IE
which then maximizes displaying it.

how can i get IE to pop out and display the webpage ???

thank you

Try

Process.Start("http://www.XXXXXXX.org/manual.pdf")
 
I just threw it into a console app and works fine for me. (random pdf from google search used)

Module
Module1



Sub Main()



Process.Start("http://cran.r-project.org/doc/manuals/R-intro.pdf")



End Sub


End
Module
 
"process.start " worked ..thanks for everyone ......i had made a stupid typo previously .... thanks guys!!

Which is why you should always post what you did and tell us what happened. We are quite likely to pick up such errors quickly. If we post code that we know works and you say that it doesn't, all we can tell you is that you did something wrong but, unless you tell us what you did, we can't possibly know what's wrong with it.
 
Back
Top