all groups > vb.net controls > october 2005 >
You're in the

vb.net controls

group:

tabcontrol use



tabcontrol use mikeslaptop
10/18/2005 12:00:00 AM
vb.net controls: hi folks.
how do i determine which tab is being displayed??
i cant even find an onclick event so i can set a flag to read later.

i have 6 tabs, and a databound-toolbar for database add-change-delete-save,
and a custom-button added to the toolbar for a search

i want to hide the searchbutton unless i'm on a particular tab, but i cant
see how to do it
i already tried.....
Me.jobsheettabs.TabPages.Item("Jobmanager").Focused but the focus is
lost by the time i click another button

i cant find any other property to read to see if the tab is pressed/visible.



thanks





Re: tabcontrol use Herfried K. Wagner [MVP]
10/18/2005 11:08:50 AM
"mikeslaptop" <me@here.com> schrieb:
[quoted text, click to view]

You can use the tabcontrol's 'SelectedTab' or 'SelectedIndex' properties to
determine the selected tab.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Re: tabcontrol use mikeslaptop
10/20/2005 2:15:40 AM
thanks. i found where i went wrong

me.tabcontrolname.tabpage. ---->then couldnt find selected or name property
from that point
appreciated-
mg


[quoted text, click to view]

AddThis Social Bookmark Button