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?
Re: Need TabControl help
I'm not sure what you are trying to do with the TabControl(see Windows Generated
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?)
"jb" <firstname.lastname@example.org> 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?
Tab control in Web Form
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.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center