I am sorry. I withdraw this post because I''ve posted same question in July 13,06 and Mano has already answered my question. Thanks.
>Hello There,
V3.3.0 VS.NET2003
I am trying to add/remove baritem to/from XPMenu bar by code.
I use this line to clear the existing bars before adding new baritems. but it doesn''t work.
How can I do it?
// clear the existing bars
barSubModule.Items.Clear();
I attached my sample. click ''Section'' will add Section''s baritem, click ''Report'' will add Report''s item, but they do not clear the previous exsiting items.
Regards,
Lan
WindowsApplication220.zip