Results 1 to 6 of 6

Thread: add button on web browser

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    6

    add button on web browser

    hi all,
    know i work at a web browser but i have a problem

    how to add this button in a tab control


    i main the add button

    i know the code to add new tab ,but i don`t know how to add this button

    thank you ,,,

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    6

    Re: add button on web browser

    hello ,
    an answer please

    i must to do that

    how can i but in a tab control ??
    thank you

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,531

    Re: add button on web browser

    it's not a button but a pseudo tab... just add a tab with "+" as the caption... then when that tab is activated, add a new tab, insert it at the right spot, then activate it.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    6

    Re: add button on web browser

    Well
    I'll try to do this
    And will tell you the outcome of it

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    6

    Re: add button on web browser

    thank for the answer , but this code is for (add tab)
    where can i but it
    Dim Browser As New WebBrowser
    TabControl1.TabPages.Add("new page")
    TabControl1.SelectTab(int)
    Browser.Name = "Web Browser"
    Browser.Dock = DockStyle.Fill
    TabControl1.SelectedTab.Controls.Add(Browser)
    AddHandler Browser.ProgressChanged, AddressOf loading
    AddHandler Browser.DocumentCompleted, AddressOf Done
    int = int + 1


    thank you

  6. #6
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,531

    Re: add button on web browser

    in the event that fires when the tab is selected... it's going to take a little more effort though, as you're only going to want it to run when the tab has a caption of "+" ... otherwise it could end up in an endless loop as soon as you run TabControl1.SelectTab(int)

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width