Discussion:
TabControl Refer To TabPage By Name
(too old to reply)
Derek Hart
2009-07-02 23:36:02 UTC
Permalink
Is there a way to refer to a TabPage by name?

MyTabControl.TabPages("UseNameHere").Visible = True
SMJT
2009-07-03 07:56:26 UTC
Permalink
Just as you've written, although the Tab Page doesn't have a visible
property.

TabPage tmpPage = MyTabControl.TabPages["UseNameHere"];
Post by Derek Hart
Is there a way to refer to a TabPage by name?
MyTabControl.TabPages("UseNameHere").Visible = True
Martin M
2009-08-13 15:29:54 UTC
Permalink
SpringSys XTabControl supports it.
Post by SMJT
Just as you've written, although the Tab Page doesn't have a visible
property.
TabPage tmpPage = MyTabControl.TabPages["UseNameHere"];
Post by Derek Hart
Is there a way to refer to a TabPage by name?
MyTabControl.TabPages("UseNameHere").Visible = True
Loading...