click on tabpageadv

Hi,
I need code how to click on tabpageadv or fire event "MouseClick" on tabpageadv?

Avi

3 Replies

AD Administrator Syncfusion Team June 25, 2009 12:06 PM UTC

Hi,

Thank you for using Syncfusion products.

You can use MouseClick event of TabPageAdv when body of tabPageAdv is clicked and you can use SelectedIndexChanging event when tab is clicked.

The following code snippet illustrates this.

[C#]


private void tabPageAdv1_MouseClick(object sender, MouseEventArgs e)
{
Console.WriteLine("Clicked body of tabPageAdv1");

}


private void tabControlAdv1_SelectedIndexChanging(object sender, Syncfusion.Windows.Forms.Tools.SelectedIndexChangingEventArgs args)
{
Console.WriteLine("Clicked tab"+args.NewSelectedIndex.ToString());
}

Please let me know if this helps you.

Regards,
Jaya


AD Administrator Syncfusion Team June 25, 2009 01:12 PM UTC

Hi,
I would like to know how to activate the mouseclick event....,Not to catch the mouseclick event.


AD Administrator Syncfusion Team June 26, 2009 01:13 PM UTC

Hi ,

Thanks for the update.

Without clicking on tabPageAdv2, you could raise MouseClick event of tabPageAdv2 by clicking on tabPageAdv1 using the code snippet below.

[C#]


private void tabPageAdv1_MouseClick(object sender, MouseEventArgs e)
{
tabPageAdv2_MouseClick(this.tabPageAdv2,e);
}

private void tabPageAdv2_MouseClick(object sender, MouseEventArgs e)
{
MessageBox.Show("tabPageAdv2_MouseClick");
}

Please provide me more details on raising MouseClick event if this not helps.

Regards,
Jaya

Loader.
Up arrow icon