We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

click on tabpageadv

Thread ID:

Created:

Updated:

Platform:

Replies:

83309 Jun 24,2009 03:35 PM UTC Jun 26,2009 01:13 PM UTC General Discussion 3
loading
Tags: General Discussion
Administrator [Syncfusion]
Asked On June 24, 2009 03:35 PM UTC

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

Avi

Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;