|
-
Dec 19th, 2005, 11:55 AM
#1
Thread Starter
Registered User
Internet...
How do I open the Internet?
-
Dec 19th, 2005, 11:59 AM
#2
Re: Internet...
Not sure what's on your mind...
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.
-
Dec 19th, 2005, 05:37 PM
#3
Re: Internet...
 Originally Posted by stealth black
How do I open the Internet?
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.
-
Dec 20th, 2005, 12:24 AM
#4
Lively Member
Re: Internet...
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
-
Dec 21st, 2005, 08:28 AM
#5
Thread Starter
Registered User
Re: Internet...
Hey guys, I found it! There's this big blue "e" on my deskto.....
DJWK answered it for me... I'll be more specific next time.... LMAO
-
Dec 21st, 2005, 08:34 AM
#6
-
Dec 21st, 2005, 08:35 AM
#7
Fanatic Member
Re: Internet...
WHAT???
Next thing you know, you'll be asking how to download the internet...
r0ach™
Don't forget to rate the post
-
Dec 21st, 2005, 08:41 AM
#8
-
Dec 21st, 2005, 08:44 AM
#9
Re: Internet...
I think this is enough chatter.
-
Dec 21st, 2005, 08:49 AM
#10
Thread Starter
Registered User
Re: Internet...
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....
-
Dec 21st, 2005, 09:05 AM
#11
Re: Internet...
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.
-
Dec 21st, 2005, 09:18 AM
#12
Re: Internet...
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
-
Dec 21st, 2005, 10:09 AM
#13
Thread Starter
Registered User
Re: Internet...
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....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|