I am creating a windows application in C# using Visual Studio 2005.

I get an error when I try to Hide Salary tab by discarding what I created earlier...

Error: Cannot implicitly convert type 'void' to 'System.Windows.Forms.TabPage'
Line: tabpg = this.tabctrlEmployeeInfo.TabPages.Add("tabpgSalary");

Thank you,
This is the entire code Function
---------------------------------------------------------------------------------------------------------------------

//Called to dynamically show/hide the "Salary" tab page
//
private void showSalaryToolStripMenuItem_Click(object sender, EventArgs e)
{
if (this.showSalaryToolStripMenuItem.Text.StartsWith("Show"))
{
//Show Salary tab, which we create on the fly
//
TabPage tabpg;
tabpg = new TabPage("Salary");
tabpg.Name = "tabpgSalary";
tabpg.ForeColor = Color.Red;

Label lbl;
lbl = new Label();
lbl.Text = "Salary:";
lbl.Location = new Point(30, 40);

TextBox txt;
txt = new TextBox();
txt.Name = "txtSalary";
txt.Location = new Point(100, 37);
txt.ReadOnly = true;
txt.Size = new Size(200, 26);

tabpg.Controls.Add(txt);
tabpg.Controls.Add(lbl);
this.tabctrlEmployeeInfo.TabPages.Add(tabpg);

if (this.employee != null)
{
//we have an employee being displayed, show their salary
txt.DataBindings.Add("Text", this.employee, "FormattedSalary");
}
this.showSalaryToolStripMenuItem.Text = "Hide Salary"; //flip menu text
}
else
{
//
//Hide Salary tab by discarding what we created earlier...
//
TabPage tabpg;
tabpg = this.tabctrlEmployeeInfo.TabPages.Add("tabpgSalary");
this.tabctrlEmployeeInfo.TabPages.Remove(tabpg);

this.showSalaryToolStripMenuItem.Text = "Show Salary"; //flip menu text
}


}