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 


Web Browser creating help plz

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

Joined: 24 Jul 2007
Posts: 142
Location: Amd Phenom 2.2ghz Triple Core

PostPosted: Sun Oct 05, 2008 8:51 am    Post subject: Web Browser creating help plz Reply with quote

i created a Wb but if i try adding a settings form with a set homepage option i dont know the code to save changes and it allways restarts to the same homepage..

im using vb8 can someone help plz Sad
Back to top
View user's profile Send private message MSN Messenger
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Sun Oct 05, 2008 10:33 am    Post subject: Reply with quote

If you want to change internet explorer's homepage edit the registry like this:

Software\Microsoft\Internet Explorer\Main\Start Page = [THE NEW HOMEPAGE]

Example usage in Delphi (I know you are using VB 2008 but I only know Delphi and C++) - http://delphi.about.com/cs/adptips2004/a/bltip0204_5.htm
Back to top
View user's profile Send private message
blackdiamond
Expert Cheater
Reputation: 0

Joined: 06 Oct 2007
Posts: 161

PostPosted: Sun Oct 05, 2008 10:43 am    Post subject: Reply with quote

you could use this when the homepage button is clicked

Dim homepage As String = "forum.cheatengine.org"
webbrowser1.navigate(homepage)

and when the form loads it's even easier

webbrowser1.navigate("forum.cheatengine.org")

don't forget the quotation marks.

EDIT: sorry didn't read it right, i'l look into this and post the real answer.

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

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sun Oct 05, 2008 11:12 am    Post subject: Reply with quote

you can save to file the homepage name and when the WB is loading read the name from the file and navigate there
_________________
Stylo
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Sun Oct 05, 2008 5:39 pm    Post subject: Reply with quote

Code:


Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim homepage As String
homepage = My.Computer.FileSystem.ReadAllText("hp.txt")
 WebBrowser1.Navigate(Homepage)



And the contens of hp.txt will be

Code:

http://www.google.com


Post again if you need an example project.
Back to top
View user's profile Send private message MSN Messenger
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Sun Oct 05, 2008 7:35 pm    Post subject: Reply with quote

If you're using VB.NET, then use the My.Settings feature.

Go into Project -> Properties and click the Settings tab. Add a string setting called HomePage.

Then, in your code reference this setting as My.Settings.HomePage. If you modify this value in your code and want to save it, use My.Settings.Save().

For example:
Code:
Private Sub btnSetHomepage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSetHomepage.Click
    My.Settings.HomePage = txtHomePage.Text
    My.Settings.Save()
End Sub

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    WebBrowser1.Navigate(My.Settings.HomePage)
End Sub
Back to top
View user's profile Send private message
emperus
Expert Cheater
Reputation: 0

Joined: 24 Jul 2007
Posts: 142
Location: Amd Phenom 2.2ghz Triple Core

PostPosted: Fri Oct 10, 2008 7:03 am    Post subject: Reply with quote

ok guys thank you very mutch
Back to top
View user's profile Send private message MSN Messenger
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