TabPage Enabled property

O

Ohad Young

Hi,

A very strange thing is going on in the TabPage class.
In the documentation "Disabling Tab Pages Programmatically", the TabPage
seems to have
a very useful property "Enabled". However, this property doesn't appear in
the TabPage members
in the documentation nor in the Visual Studio IDE.
I'm using MSDN April 2003 and Visual Studio Architect 2003.

What's going on?

P.S.
The strangest thing is that it works!!!
I used the property even though it doesn't seem to be part of the class and
it works fine.
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)
 
H

Herfried K. Wagner [MVP]

* "Ohad Young said:
A very strange thing is going on in the TabPage class.
In the documentation "Disabling Tab Pages Programmatically", the TabPage
seems to have
a very useful property "Enabled". However, this property doesn't appear in
the TabPage members
in the documentation nor in the Visual Studio IDE.
I'm using MSDN April 2003 and Visual Studio Architect 2003.

Are you sure the property works?!

You can show advanced members in the code editor with the "Hide advanced
members" option under "Tools" -> "Options" -> "Text Editor" -> "Basic"
-> "General".
 
Y

Ying-Shen Yu[MSFT]

Hi Ohad,

Visible , Enabled of TabPage are [Browsable(false),
EditorBrowsable(EditorBrowsableState.Never)], so that they dont show in
PropertyBowser as well as are NOT AutoCompleted.

The document of TabPage.Enabled recommended not use these properties in
your code.

I'll contacte the doc team to let them know this doc needs updating.
Thanks!

Happy new year!

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
O

Ohad Young

Hi Ying-Shen,

Thanks for the reply, it explains the strange behavior.

I was wondering if you can recommend me a good way to deal with the
problem I'm facing:
Limit the access in some way to a certain tabpage under some circumstances.

I used the SelectedIndexChanged event of the tabcontrol to monitor the
access
to the tabpages. Is this the recommended way?

Thanks, Ohad
 
H

Herfried K. Wagner [MVP]

* "Ohad Young said:
I was wondering if you can recommend me a good way to deal with the
problem I'm facing:
Limit the access in some way to a certain tabpage under some circumstances.

I used the SelectedIndexChanged event of the tabcontrol to monitor the
access
to the tabpages. Is this the recommended way?

You will find some code there which allows you to prevent the selected
tab from changing:

<http://www.google.de/[email protected]>
 
Y

Ying-Shen Yu[MSFT]

Hi Ohad,

Except using the Enabled Property, the rest part of that article should be
ok.
In your case, probably you may use the code snippet in the step 4.
If you meet any problems on this issue, please be free to reply this thread.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
O

Ohad Young

Hi,

Thanks for the tip. I managed to do the trick with the SelectedIndexChanged
event of the
TabControl.

Best, Ohad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top