Need TabControl help


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Need TabControl help

  1. #1
    jb Guest

    Need TabControl help


    I am trying to use the Tabcontrol in VB.Net. The MS documentation indicates
    that when you click a tab on the control the tab's Click event will be fired.
    This is not true. The Click event is only fired if you click in the body
    of the tab (the tab's page area). I can find no event that fires when an
    individual tab is clicked. What is the solution?

    Thanks!

  2. #2
    PWilmarth Guest

    Re: Need TabControl help


    I'm not sure what you are trying to do with the TabControl(see Windows Generated
    Code Below)



    Friend WithEvents TabControl1 As System.Windows.Forms.TabControl
    Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
    Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
    Friend WithEvents TabPage3 As System.Windows.Forms.TabPage
    Friend WithEvents TabPage4 As System.Windows.Forms.TabPage

    The TabControl contains TabPages. If you click on the tab on the TabPage,
    the click event is fired within the tab, not the entire page. I have done
    no coding for this control; if I click on the body of the page, nothing happens.
    If I click on the tab, the page will change. So it isn't clear from your
    question what is happening; my tab control functions just as the MS documentation
    states. So there must be some other reason for the problem you are experiencing
    (maybe something in the properties?)

    PW




    "jb" <virtual1445@earthlink.net> wrote:
    >
    >I am trying to use the Tabcontrol in VB.Net. The MS documentation indicates
    >that when you click a tab on the control the tab's Click event will be fired.
    >This is not true. The Click event is only fired if you click in the body
    >of the tab (the tab's page area). I can find no event that fires when an
    >individual tab is clicked. What is the solution?
    >
    >Thanks!



  3. #3
    Join Date
    Aug 2005
    Posts
    111

    Tab control in Web Form

    Hi,

    I have a question which is quite simple: Can I add a tab control to a Web Form? If yes, would anyone tell me how? If no, is there a work-around solution?

    Thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center