Most of the basic UI controls have Enabled property. I know we can't
disable a specific tab page, but why is it so? What is the rationale?
I don't think Microsoft developers designed that way because they
couldn't implement it.

Re: Why can't we disable a tab page? by Cor

Cor
Tue May 06 04:48:19 CDT 2008

Cat.

You can simple remove it temporaly from the TabPageControl.Controls

\\\
YourTabpageControl.Controls.Remove(TheTab)
///

What you think wabout the implementation of the Microsoft developers.
Everybody is free to do it himself if he can do it better.

Cor

"Cat" <typingcat@gmail.com> schreef in bericht
news:24a5d682-8501-498b-a14b-be063ef9763b@y18g2000pre.googlegroups.com...
> Most of the basic UI controls have Enabled property. I know we can't
> disable a specific tab page, but why is it so? What is the rationale?
> I don't think Microsoft developers designed that way because they
> couldn't implement it.


Re: Why can't we disable a tab page? by Armin

Armin
Tue May 06 03:28:51 CDT 2008

"Cat" <typingcat@gmail.com> schrieb
> Most of the basic UI controls have Enabled property. I know we can't
> disable a specific tab page, but why is it so? What is the
> rationale? I don't think Microsoft developers designed that way
> because they couldn't implement it.

Have a look at the appropriate m.p.d.framework.* group. This one's for
VB.Net language related problems.


Armin


Re: Why can't we disable a tab page? by Steve

Steve
Tue May 06 08:42:12 CDT 2008

Cat wrote:
> Most of the basic UI controls have Enabled property. I know we can't
> disable a specific tab page, but why is it so? What is the rationale?
> I don't think Microsoft developers designed that way because they
> couldn't implement it.

I don't know why. I use a third party tab control, where each tab page has a
Visible and an Enabled property. It is both possible and useful.




Re: Why can't we disable a tab page? by Bill

Bill
Tue May 06 09:17:25 CDT 2008

You can still set a page to Enabled = False. Then in the selecting you
have to set e.Cancel to true to cancel it, e.g:
e.Cancel = Not e.TabPage.Enabled
But the real issue is you need to set it to ownerdrawn and draw the tab
captions in the DrawItem events.



"Cat" <typingcat@gmail.com> wrote in message
news:24a5d682-8501-498b-a14b-be063ef9763b@y18g2000pre.googlegroups.com...
> Most of the basic UI controls have Enabled property. I know we can't
> disable a specific tab page, but why is it so? What is the rationale?
> I don't think Microsoft developers designed that way because they
> couldn't implement it.