المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : TabControl SelectedIndexChanged call on form load



C# Programming
06-11-2009, 10:50 AM
Hi All,

I want to do a process on specific tab. So I do similar to this.

private void AllTabs_SelectedIndexChanged(object sender, System.EventArgs e)
{
if(AllTabs.SelectedTab == tabMyTab)
MessageBox.Show("FOUND");
}

On click the specific tab, message is pop-up. But the issue is, message also pop-up on the form load as well. I don't want to do that. Can someone help me to sort out this.

Thanks a lot http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif

I appreciate your help all the time...
CodingLover http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif