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

ParenBarItem1_Click doesn''t react to events

Hi, everyone

How can I Handle click event of some ParenBarItem?
I tried to use Private Sub ParenBarItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ParenBarItem1.Click, and it does nothing...
Please, help me with this.

Regards,
Allon



4 Replies

NR Nandakumar R Syncfusion Team September 10, 2009 12:14 PM UTC

Hi,

Thanks for your interest in Syncfusion Essential Studio.

By default, the ParentStyle property of the ParentBarItem will be Default which will work like a Menu - when clicked it will show the dropdown and there will be no click event fired. Once you set the ParentStyle property to DropDown, you can see the ParentBarItem is firing the Click event.

[C#]
this.parentBarItem1.ParentStyle = Syncfusion.Windows.Forms.Tools.XPMenus.ParentBarItemStyle.DropDown;

http://www.syncfusion.com/uploads/redirect.aspx?file=Sample_a2c5c205.zip&team=support

Please try this and let me know if this helps.

Regards,
Nanda


NR Nandakumar R Syncfusion Team September 10, 2009 12:17 PM UTC



AL Allon September 10, 2009 01:30 PM UTC

Thanks a lot, Nanda :)

That was helpful.

Regards,
Allon


NR Nandakumar R Syncfusion Team September 11, 2009 04:39 AM UTC

Thanks for the update Allon.

Regards,
Nanda

Loader.
Live Chat Icon For mobile
Up arrow icon