.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

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

Posted By:Narayanan       Posted Date: May 14, 2013    Points: 40    Category: Visual Studio    URL: http://www.dotnetspark.com  

Today ,w e will discuss about getting last selected Tab page Name in the Tab Control in VB.Net

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
Call this Code in the Form Load Event:
My.Settings.cntTab   = TabControl1.SelectedTab.Name
Happy Coding!


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend