How do I open the Internet?
Printable View
How do I open the Internet?
Not sure what's on your mind... :confused: :confused:
In case you want to develop browser fo your own then there is a WebBroser control available in VB. Or simply add new form and select WebBrowser - most of work will be already done for you.
:lol:Quote:
Originally Posted by stealth black
No offense, but that quote is actually pretty funny.
If it has to do with VB, although you left no details on what you plan to access the internet with, then either do what Rhinobull is saying, if you plan on making a webbrowser, or use a Winsock control or DirectPlay to work with the internet doing networking stuff.
Hey, I agree that is pretty funny.
If you want to load a URL in your webbrowser then the code below should do it.
Global Declarations (Not in a Sub)
VB Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
VB Code:
Private Sub Command1_Click() Call ShellExecute(0&, vbNullString, "http://www.theurl.com", vbNullString, vbNullString, vbNormalFocus) End Sub
Hey guys, I found it! There's this big blue "e" on my deskto..... :lol:
DJWK answered it for me... I'll be more specific next time.... LMAO
I don't think I believe what I see ... Is it me ??????? :eek: :eek2: :rolleyes:Quote:
Originally Posted by stealth black
MG, this IS the most rediculous thread ever, indeed !!!!!!!!!!!!!!!!!!!!!!
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
WHAT???
Next thing you know, you'll be asking how to download the internet...
Last few replies in this thread had made my day - I can't stop laughing. :lol: :lol: :lol:
This thread indeed belongs to "hall of fame" of some kind. ;)
I think this is enough chatter.
Ok guys... I'm kidding... OMG
What I should've posted was this:
I am creating a tracking program that allows users to input a sales oreder number, and return a tracking number, cost, weight, etc... I would like for them to also be able to click a button and be taken directly to the tracking page for that tracking number. I have successfully created the string for bypassing the "terms agreement" and "tracking number input page", I'm not sure how to open IE with my command button...
Rhino, I'm an intermediate programmer, but I'm a systems manager, so I think I would be pretty good at using Windows.... :ehh:
I don't really care who you are and what you are - if you've come to a programming forum then you better ask relevant question(s) and try to make yourself clear every time you post something.
Regarding your last (clear) question - ShellExecute() should do it and jwk posted sample code for you.
Best regards. :wave:
stealth - I'd appologize for the others.... except that you have to admit the initial post does seem a bit.... noobish... and kinda rediculous. We have seen questions like that before where the poster was serious....
at any rate, if you had posted your real problem initialy, you would have gotten better answers.
Use the ShellExecute, passing in the URL you want. that will launch the user's default browser and navigate to that web page automaticaly.
-tg
Rhino, please be sure that before you drop in on a post that your PRESENCE is relevant, which in this case it's not, as djwk had already answered my question.. And the only reason I mention who I am is because IT was relevent... You served no purpose in this post, but I do still respect your VB expertise, because you've assisted me before...
Let's move on....
Thanks Tech....