BUG: Tab page control

  • Thread starter Thread starter Bug
  • Start date Start date
B

Bug

Hi,


In a tab control it is currently NOT possible to enable
or disable (.Enable = true, or .Enable = false) as normal
controls at the tab level.

I would be nice to be able to disable specific tabs on
this control. Hide just hides the controls contained on
the tab but not the tab itself. I need to be able to
disable this tab from clicking at all, and have others
enabled.

Any ideas?

Thanks
 
Anybody know if this will be implemented? I cant see why this was omitted
form the control. Seems daft.
 
* "Bug said:
In a tab control it is currently NOT possible to enable
or disable (.Enable = true, or .Enable = false) as normal
controls at the tab level.

'Visible' and 'Enabled' don't work... That's a "known problem", I think.
 
I mean to enable and disable the actual tab control button so in the
collection of tabs it would be for a specific item.
 
The actual item in the container doesnt actually have a .Enabled property to
set at. Its all or nothing on the tabs which is sucky.

anonymouse said:
I mean to enable and disable the actual tab control button so in the
collection of tabs it would be for a specific item.
 
OK.... so I didn't believe everything that was being said here..... and
maybe I don't understand what the real issue is..... BUT........ as I
understand it.. you want to enable/disable ONE tabpage in a control....
that has... say... five pages in it..... If that is the task......
try this code....

TabControl1.TabPages(0).Enabled = False

every control on the specified tab page will be DISABLED.... as the
tabpage is a grouping type of a control..... just like the groupbox.....

The TAB header doesn't change color..... and the FONT traits refers to the
text that is being displayon on the tabpage..... if you set it at the
tabpage level...... (just like one would expect)... or you can set it at
the control level which will change the entire control...

Did I miss the issue ?

HTH

anonymouse said:
The actual item in the container doesnt actually have a .Enabled property to
set at. Its all or nothing on the tabs which is sucky.
 
I want to disable clicking the TAB button, not the controls on the form. I
want to prevent the click on that particular tab.

With ur solution I can still click the tab, but not the contained controls.

This isnt possible in the tab control currently.
 
OK..... not to belabor the point.... cause there are things in .NET
(like all languages) that have issues... how about throwing a visual
cue... to indicate this isn't available...... and trap the activate
event... and push it off to another available tab like the one they just
came from ?

YEA... interesting logic.... but if you absolutely need this type of
behaviour... and demand to have this in a tab control..... either code
it.... or buy it...... cause your right.... the tab will respond to a
click event and receive focus.
 
i blcok mousedown atm but its messy


Steve S said:
OK..... not to belabor the point.... cause there are things in .NET
(like all languages) that have issues... how about throwing a visual
cue... to indicate this isn't available...... and trap the activate
event... and push it off to another available tab like the one they just
came from ?

YEA... interesting logic.... but if you absolutely need this type of
behaviour... and demand to have this in a tab control..... either code
it.... or buy it...... cause your right.... the tab will respond to a
click event and receive focus.


as
 
Back
Top