Removing Menubar


in my application i have that have several option which is Main, Others, Reports, Housekeeping and under those headings, many menu items.

I want to be able to remove all those 4 headings and currently in my code ‘menubarAS.Remove(1)’ 4 times.

is there a faster way to remove all of those heading or maybe do a count and then and then do a for-next loop and do ‘menubarAS.Remove(1)’

why not create another menubar, and simply switch from one to the other

well my application have flexible menubar depends on the users… so can’t really switch between one menubar to another.