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.
9 posts Page 1 of 1
Contributors
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

help me out with this
Shim
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 :D . 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;
Find my programs on Softpedia
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Re: help me out with this
Filip
You should dock controls..
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: help me out with this
muttley1968
rather then dock you can set the ankors up and then controls move and work with the form resize
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: help me out with this
Shim
how can i do it ? docking ? and what about the tabbed web browser ?
Find my programs on Softpedia
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: help me out with this
muttley1968
Ancor is better as it allows buttons to move and textbox to resize and a tabbed browser try
Code: Select all
CType(Tabcontrol1.SelectedTab.Controls.Item(0), Windows.Forms.WebBrowser)
So you would use that like
Code: Select all
CType(Tabcontrol1.SelectedTab.Controls.Item(0), Windows.Forms.WebBrowser).gohome
simples :P and then to add a tab just do
Code: Select all
 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
Need anymore help just ask :P
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: help me out with this
M1z23R
To get each webbrowser in tabcontrol you can use something like this
Code: Select all
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
You can change the code a bit and make it to your needs.

And for the controls, you can make a panel, dock it top in tabpage, and then dock controls (back/forward...) left in the panel.
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: help me out with this
Shim
do i have to insert the web browser on the tab controt ? Or what should i do ?
Find my programs on Softpedia
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: help me out with this
M1z23R
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
Code: Select all
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)
Now add textbox and another button somewhere on the form.
Double click the button and add this
Code: Select all
For each ctrl as control in tabcontrol1.selectedtab.controls
If typeof ctrl is webbrowser then ctype(ctrl, webbrowser).navigate(textbox1.text)
next
What this does it navigates the webbrowser on current tab to a url in textbox1

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.
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: help me out with this
Shim
thanks for the good explanation :D it works now :D :D
Find my programs on Softpedia
9 posts Page 1 of 1
Return to “Coding Help & Support”