Get last selected Tab page Name in the Tab Control in VB.Net

Naraayanan
Posted by Naraayanan under VB.NET category on | Points: 40 | Views : 48173
Declare a string in the Application setting .

cntTab  string 


call this code in the TabControl_SelectedIndex Event:

Dim idx As String
idx = My.Settings.cntTab
MessageBox.Show("Pervoius Tab Index" & idx.ToString())
My.Settings.cntTab = TabControl1.SelectedTab.Name
My.Settings.Save()


Call this Code in the Form Load Event:

My.Settings.cntTab   = TabControl1.SelectedTab.Name
My.Settings.Save()

Comments or Responses

Login to post response