You are viewing our Forum Archives. To view or take place in current topics click here.
Vb code help it is for a ttg program
Posted:
Vb code help it is for a ttg programPosted:
Status: Offline
Joined: Apr 24, 201113Year Member
Posts: 75
Reputation Power: 2
Status: Offline
Joined: Apr 24, 201113Year Member
Posts: 75
Reputation Power: 2
I am kinda new to vb and I just wanted to no the code for something
what I want the code to do
when you click a buttion on form 1 it open form2 witch is a webbroswer and goss to a certain fourm on a website/section
if you need a better explantion ask for one
Thanks for reading
what I want the code to do
when you click a buttion on form 1 it open form2 witch is a webbroswer and goss to a certain fourm on a website/section
if you need a better explantion ask for one
Thanks for reading
#2. Posted:
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
Try putting this in your button code:
Dim oForm as Form2
oForm = New Form2()
oForm.show()
oForm = Nothing
form2.webbrowser1.navigate("https://www.thetechgame.com")
Dim oForm as Form2
oForm = New Form2()
oForm.show()
oForm = Nothing
form2.webbrowser1.navigate("https://www.thetechgame.com")
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Sep 26, 201014Year Member
Posts: 401
Reputation Power: 17
Status: Offline
Joined: Sep 26, 201014Year Member
Posts: 401
Reputation Power: 17
RaymondIsMe wrote I assume that you want something like:
Dim oForm as Form2
oForm = New Form2()
oForm.show()
oForm = Nothing
form2.webbrowser1.navigate("http://www.thetechgame.com")
Or
Dim oForm as new Form2
oForm.show()
form2.webbrowser1.navigate("http://www.thetechgame.com")
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
For that to work wouldn't form 2 have to already be hidden?
- 0useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Jan 24, 201014Year Member
Posts: 1,478
Reputation Power: 106
Status: Offline
Joined: Jan 24, 201014Year Member
Posts: 1,478
Reputation Power: 106
I'm better in C#, but I'll give it a try.
On the first button, put this.
Then, double click form2, and under load, put this:
Keep in mind that release TTG web browsers is against the rules.
~Derp
On the first button, put this.
form2.Show
Then, double click form2, and under load, put this:
webBrowser1.Navigate("www.thetechgame.com")
Keep in mind that release TTG web browsers is against the rules.
~Derp
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Apr 24, 201113Year Member
Posts: 75
Reputation Power: 2
Status: Offline
Joined: Apr 24, 201113Year Member
Posts: 75
Reputation Power: 2
I don't want to tell what it is but I pretty sure when I do get it done I will post a beta so see if it is alloud on the site
also thanks for the responce
also thanks for the responce
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
Status: Offline
Joined: Feb 07, 201113Year Member
Posts: 314
Reputation Power: 14
-Derp wrote I'm better in C#, but I'll give it a try.
On the first button, put this.
form2.Show
Then, double click form2, and under load, put this:
webBrowser1.Navigate("www.thetechgame.com")
Keep in mind that release TTG web browsers is against the rules.
~Derp
That is an extremely inefficient code,
He wants the form to be able to open to multiple different places on the site by the sound of it.
This would only allow it to open to the homepage.
I recommend using my code posted 2nd in this topic.
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Apr 24, 201113Year Member
Posts: 75
Reputation Power: 2
Status: Offline
Joined: Apr 24, 201113Year Member
Posts: 75
Reputation Power: 2
Raymond is right I want to be able to open certain sections on the site not the homepage when ever I get it done u will understand what it is about
I am now a the stage where I edit the text in and links it's going to take a while
I am now a the stage where I edit the text in and links it's going to take a while
- 0useful
- 0not useful
#9. Posted:
Status: Offline
Joined: Jan 24, 201014Year Member
Posts: 1,478
Reputation Power: 106
Status: Offline
Joined: Jan 24, 201014Year Member
Posts: 1,478
Reputation Power: 106
RaymondIsMe wrote-Derp wrote I'm better in C#, but I'll give it a try.
On the first button, put this.
form2.Show
Then, double click form2, and under load, put this:
"what I want the code to do
when you click a buttion on form 1 it open form2 witch is a webbroswer and goss to a certain fourm on a website/section"
^^ Thats what my code does.
webBrowser1.Navigate("www.thetechgame.com")
Keep in mind that release TTG web browsers is against the rules.
~Derp
That is an extremely inefficient code,
He wants the form to be able to open to multiple different places on the site by the sound of it.
This would only allow it to open to the homepage.
I recommend using my code posted 2nd in this topic.
- 0useful
- 0not useful
#10. Posted:
Status: Offline
Joined: May 20, 201014Year Member
Posts: 3,135
Reputation Power: 136
Status: Offline
Joined: May 20, 201014Year Member
Posts: 3,135
Reputation Power: 136
Wow I totally didn't make an app. like this for TTG and it didn't get taken down.... anyway.... On the button 1 click event do: form2.show()me.hide()webbrowser1.navigate(whereverURLhere()
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.