Windows Develop Bookmark and Share   
 index > Windows Forms General > Clear data from a tabpage in a tabcontrol
 

Clear data from a tabpage in a tabcontrol

Hi,

I have a tabcontrol with tabpages. The tabpage has several other controls on it which will be filled with data.
When i save it, i want the tab page to clear out all the data from the tabpage.

Is there any way to clear the data?

Thanks in Advance

rowter  Friday, September 18, 2009 5:15 PM
You have to manual clear the content in controls in the tabpage.

Some of the examples are given below,

TextBox1.Clear()
ComboBox1.SelectedIndex = -1
DataGridView1.DataSource = Nothing
Gaurav Khanna
Khanna Gaurav  Friday, September 18, 2009 5:23 PM
You have to manual clear the content in controls in the tabpage.

Some of the examples are given below,

TextBox1.Clear()
ComboBox1.SelectedIndex = -1
DataGridView1.DataSource = Nothing
Gaurav Khanna
Khanna Gaurav  Friday, September 18, 2009 5:23 PM

You can use google to search for other answers

Custom Search

More Threads

• mdi container with navigator & screens
• Cannot Reflect on custom Attribute
• Where is the C# Login form template in VS 2005
• MonthCalendar Control
• Null Reference Exception
• MDI or SDI
• How to set the button image to a shell icon?
• Localization Problem
• Invalid ResX input!!!! Please help!!!!!!!!!!!!Urgent
• Custom Draw Caption Buttons