help me out with this
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
9 posts
Page 1 of 1
hello guys ,
i have a form and its GUI is custom and when i debugged it the program runs but when i click maximize it the form only gets large and the tools are just staying as before they doesnt get fit
. so help me with this ?
let me know the best way of making a tabbed web browser let me know by your own idea ?
thank you cooll;
i have a form and its GUI is custom and when i debugged it the program runs but when i click maximize it the form only gets large and the tools are just staying as before they doesnt get fit

let me know the best way of making a tabbed web browser let me know by your own idea ?
thank you cooll;
Find my programs on Softpedia
You should dock controls..
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
rather then dock you can set the ankors up and then controls move and work with the form resize
Ancor is better as it allows buttons to move and textbox to resize and a tabbed browser try
Code: Select all
So you would use that like
CType(Tabcontrol1.SelectedTab.Controls.Item(0), Windows.Forms.WebBrowser)
Code: Select all
simples :P and then to add a tab just do
CType(Tabcontrol1.SelectedTab.Controls.Item(0), Windows.Forms.WebBrowser).gohome
Code: Select all
Need anymore help just ask :P Dim Browser As New Windows.Forms.WebBrowser
Tabcontrol1.TabPages.Add("New Page")
Tabcontrol1.SelectTab(int)
Browser.Name = "Web Browser"
Browser.Dock = DockStyle.Fill
Tabcontrol1.SelectedTab.Controls.Add(Browser)
int = int + 1
CType(Tabcontrol1.SelectedTab.Controls.Item(0), Windows.Forms.WebBrowser).gohome
End If
To get each webbrowser in tabcontrol you can use something like this
And for the controls, you can make a panel, dock it top in tabpage, and then dock controls (back/forward...) left in the panel.
Code: Select all
You can change the code a bit and make it to your needs.For each tb as tabpage in tabcontrol.tabpages
For each ctrl as control in tb.controls
if typeof ctrl is webbrowser then ctype(ctrl,webbrowser).refresh()
next
next
And for the controls, you can make a panel, dock it top in tabpage, and then dock controls (back/forward...) left in the panel.
do i have to insert the web browser on the tab controt ? Or what should i do ?
Find my programs on Softpedia
Make one button on a form and change its text to "NewTab", that is visible and make one tabcontrol.
Double click the button and add this
Double click the button and add this
Work around with that code and you will get to understand what does what here. it is simple english in code, not hard to understand.
Double click the button and add this
Code: Select all
Now add textbox and another button somewhere on the form.dim tb as new tabpage
tb.text ="new tab"
dim wb as new webbrowser
tb.controls.add(wb)
wb.dock = FILL
tabcontrol1.tabpages.add(tb)
Double click the button and add this
Code: Select all
What this does it navigates the webbrowser on current tab to a url in textbox1For each ctrl as control in tabcontrol1.selectedtab.controls
If typeof ctrl is webbrowser then ctype(ctrl, webbrowser).navigate(textbox1.text)
next
Work around with that code and you will get to understand what does what here. it is simple english in code, not hard to understand.
9 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023