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. Image for the cookie policy date
close icon

How can I get the selected item in XPTaskBarBox or XPTaskBar??

I'm need to search in a XPTaskBarBox the nodes or itens. I need help

Thanks!!!


1 Reply

LS Lingaraj S Syncfusion Team September 9, 2010 11:18 AM UTC

Hi,

Thank you for your interest in Syncfusion products.

Please try using following to get a selected XPTaskBarItem.

private void Form1_Load(object sender, EventArgs e)
{
this.xpTaskBarBox3.MouseDown += new MouseEventHandler(xpTaskBarBox1_MouseDown);
}
XPTaskBarItem item;
void xpTaskBarBox1_MouseDown(object sender, MouseEventArgs e)
{
Point pt = e.Location;
Syncfusion.Windows.Forms.Tools.XPTaskBarItem taskItem = xpTaskBarBox3.HitTest(pt);
if (taskItem != null)
{
item = taskItem;
}
}


Please let me know if you have any queries.

Regards,
Lingaraj S.


Loader.
Live Chat Icon For mobile
Up arrow icon