[Help]My Web Browser

Posts 16–26 of 26 · Page 2 of 2
Quote Originally Posted by Invidus View Post
Guys, stay on topic.
Or i'll get Nextgen to ban yooh for trolling/trashing threads =P.
Its a valid reason, just because someone trashed your thread doesnt give you the reason to do it back.

Report it to a mod/staff.
Don't take your own actions that you deem appropriate.
And sorry, but i don't need someone telling me what to do.

I appreciate the thought.
And sorry, you'll follow the rules, or you'll be appreciating a vacation =P
Quote Originally Posted by Invidus View Post
And sorry, you'll follow the rules, or you'll be appreciating a vacation =P
I said it once i'll say it again.

Oh you will , i assure you that.
Stay on topic.
Quote Originally Posted by Invidus View Post
Oh you will , i assure you that.
Stay on topic.
Sure i'll stay on topic.
Code:
            If Me.Cares = True Then
                Me.Sorry = True
            Else
                Me.Sorry = False
This is the vB section right? :P

But seriously back to what you said, yeah sorry for overreacting and shit okay? Forgive me.
Well...
Your code to add a webbrowser is not working...You not declared the webbrowser
Quote Originally Posted by Invidus View Post
Nice one..
The problem with that though is that it dumps the textbox in a random place..
I guess you could be proactive and create millions of tabs that aren't visible built with textboxes until you click a button =D

Ooh and i've got a question -raises hand-

Functions?
I've read and heard of them, but i don't know the full explanation.
Is it like a global function where you can call it anywhere?
Oh sorry mate, completely missed this post before,

Firstly, it won't dump the text box in a random place if you see here:

[php]
Private Function AddTextBox() As TextBox

TxtBox = New TextBox
With TxtBox
.Name = "Box" & xi
.Location = New Point(25, 25)
End With

Return TxtBox

End Function
[/php]

Location = New Point(25,25)

It will place the new textbox in a location 25px right and down from it's parent controls location, planning ahead .

Umm a global function would be

[php]
Public Shared Function ......

End Function
[/php]

A Private Function can only be called from it's parent class.

Also I use Functions when I need an output from a given activity. I'll post more details later, I need go study
J-dezzy
can u tell me were to put the codes
my codes are waaay smaller and simpler :O
Quote Originally Posted by Devient_ View Post
J-dezzy
can u tell me were to put the codes
my codes are waaay smaller and simpler :O
Well if yours are smaller and simpler and do the same thing, go ahead and use them and ignore mine
Quote Originally Posted by Jason View Post


Well if yours are smaller and simpler and do the same thing, go ahead and use them and ignore mine
That's what she said?

@ browser

in order to control the back forward and stop etc from each tab use the following

[php]
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).stop()
etc etc etc.
[/php]

Do the same thing for each web browser function.

This will allow you to control the web browser features using the selected tab.

This will allow you to add tabs

[php]
'Below Public Class Form 1
Dim i As Integer = 1
'(or public i as integer = 1)
'In Form Load Event
Dim Browseer As New WebBrowser
TabControl1.TabPages.Add(1, "Page" & i)
TabControl1.SelectTab(1 - 1)
Browser.Name = "Tabbed Browser"
'This will expand the browser to fill the tabcontrol
Browser.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Browser)
i = i + 1
[/php]

Now go into the button you are using to add a tab and copy and paste the above to allow a tab to be added

Now Go into your remove tab button and add this

[php]
TabControl1.TabPages.RemoveAt(TabControl1.Selected Index)
TabControl1.SelectTab(TabControl1.TabPages.Count - 1)
i = i - 1
[/php]

This will remove a tab from your browser

You can erase my notes obviously.

Hope this helps!
Posts 16–26 of 26 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us