Hello,
I have a winform that I added a tabcontrol to.... then I added 4 tabs.... I then went into the code behind and added the following:
private void tabControl1_SelectedIndexChanged(object sender, System.EventArgs e)
{
MessageBox.Show("AHHHHHHHH");
}
See entire Progam below......
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void tabControl1_SelectedIndexChanged(object sender, System.EventArgs e)
{
MessageBox.Show("AHHHHHHHH");
}
}
}
when I run this program and click on the different tabs I would expect it to pop up AHHHHHH as this event is triggered.... but I can click away from tab to tab and nothing ever gets triggered.... I set a breakpoint in the SelectedIndexChanged and it never is callled.... what am I doing wrong????
Thanks!
this.tabControl1.SelectedI
Thanks for the quick check :)