M Mark Stuart Well-Known Member Licensed User Longtime User Mar 6, 2018 #1 Is there a way to request the focus of a TabPage? Preferably at the time of adding the TabPage, or another way when clicking on a button, request the focus to an existing TabPage. Thanx, Mark Stuart
Is there a way to request the focus of a TabPage? Preferably at the time of adding the TabPage, or another way when clicking on a button, request the focus to an existing TabPage. Thanx, Mark Stuart
Daestrum Expert Licensed User Longtime User Mar 6, 2018 #2 Code: Copy TabPane1.SelectedIndex = 2 ' selects 3rd tab Upvote 0
M Mark Stuart Well-Known Member Licensed User Longtime User Mar 6, 2018 #3 Hi Daestrum, Based on my TabPane demo app that you commented on the other day, how would I get the SelectedIndex upon creating the tabpage? That's the part unknown to me. Edit: GOT IT - this sets the just created tabpage to be "focused". Code: Copy TabPane1.SelectedIndex = TabPane1.Tabs.Size - 1 Thanx, Mark Stuart Last edited: Mar 6, 2018 Upvote 0
Hi Daestrum, Based on my TabPane demo app that you commented on the other day, how would I get the SelectedIndex upon creating the tabpage? That's the part unknown to me. Edit: GOT IT - this sets the just created tabpage to be "focused". Code: Copy TabPane1.SelectedIndex = TabPane1.Tabs.Size - 1 Thanx, Mark Stuart