Why TabControl1.TabPages(2).Visible = False wont work?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I like to make certain tab visible or not visible based on a certain condition
However, after executing the following statement, it still shows TabPages(2) ( this tabcontrol has 4 tapPages
TabControl1.TabPages(2).Visible = False
Any Idea

Thank
Kelly
 
* "=?Utf-8?B?S2VsbHkgRHlrc3RyYQ==?= said:
Hi,
I like to make certain tab visible or not visible based on a certain condition.
However, after executing the following statement, it still shows TabPages(2) ( this tabcontrol has 4 tapPages)
TabControl1.TabPages(2).Visible = False
Any Idea?

Remove it from the 'TabPages' collection. The 'Visible' property
doesn't work.
 
Back
Top