private void tabs_Deselecting(object sender, TabControlCancelEventArgs e)
{
if (e.TabPage == tabQb && btnSavePak.Enabled)
{
if (MessageBox.Show(this,
string.Format("You have not saved changes to the PAK file.{0}{0}Are you sure you want to leave this tab?", Environment.NewLine),
"Question", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel)
e.Cancel = true;
}
}