Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[question][vb6]internet controls

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lolium
Expert Cheater
Reputation: 0

Joined: 16 Jun 2007
Posts: 209
Location: AREA 51!!!!!!!!!!!!!!!!!!!!

PostPosted: Tue Jan 01, 2008 3:37 pm    Post subject: [question][vb6]internet controls Reply with quote

what would the code be for microsfot internet controls so the internet in the form would load what is is a text box when a command button is pressed?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Tue Jan 01, 2008 3:55 pm    Post subject: Reply with quote

This goes in a button click event:
Code:
WebBrowser1.Navigate2 Text1.Text

That should work

_________________
Back to top
View user's profile Send private message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Thu Jan 03, 2008 4:38 am    Post subject: Reply with quote

that wont work here some code

i forgot err handling


Code:
Private Sub BACK_Click()

(to go back)
WebBrowser1.GoBack
End Sub

(your homepage)
Private Sub Form_Load()
WebBrowser1.Navigate ("www.google.com")
End Sub

(refresh)
Private Sub REFRESH1_Click()
WebBrowser1.Refresh
End Sub

(navigate to textbox)
Private Sub GO_Click()
WebBrowser1.Navigate (Text1.Text)
End Sub

(forward)
Private Sub FORWARD_Click()
WebBrowser1.GoForward
End Sub

(make the caption the site u are on)
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
form1.Caption = (WebBrowser1.LocationName)
End Sub


_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Thu Jan 03, 2008 5:50 am    Post subject: Reply with quote

haxory' wrote:
that wont work
Code:

Private Sub GO_Click()
WebBrowser1.Navigate (Text1.Text)
End Sub


you don't surround with brackets in vb6 if the value gets nowhere, son

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Thu Jan 03, 2008 5:36 pm    Post subject: Reply with quote

it doesnt matter if brackets or not

WebBrowser1.Navigate "lol"
WebBrowser1.Navigate ("lol)
WebBrowser1.Navigate text1.text
WebBrowser1.Navigate (Text1.Text)

doesnt matter.
Back to top
View user's profile Send private message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Thu Jan 03, 2008 5:50 pm    Post subject: Reply with quote

yeah, it doesnt really matter, you can use brackets if you want....
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jan 04, 2008 6:02 am    Post subject: Reply with quote

haxory' wrote:
that wont work here some code


Umm, yea it will.. His code was fine. Just because he didn't just hand the person the code doesn't mean he was wrong. Also he did state you need to add the code to a command button. And by looking at the line he gave, you can assume you need a textbox to hold the web address.

masterkert3 wrote:
it doesnt matter if brackets or not

WebBrowser1.Navigate ("lol)

doesnt matter.


Actually, that line wont work. Wink

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites