microkarl Posted July 20, 2004 Posted July 20, 2004 Hi all, Is it possible to change the order of menu item? for example, I have a pop up menu contains - Get Reports - Input Student Grade - Update Student information Now, later on in the code, I will add some menu item depends on some conditions. Say, i will add "Print Reports" to the menu, so normally, it will look like: - Get Reports - Input Student Grade - Update Student information - Print Reports But instead of this, I will to put the "Print Reports" on top. and it will look like - Print Reports - Get Reports - Input Student Grade - Update Student information Is it possible to do it this way. P.S. This is a pop up menu, not those menu on top of the bar of the program. Thanks Carl Quote Donald DUCK : YOU ARE FIRED!!!
Administrators PlausiblyDamp Posted July 20, 2004 Administrators Posted July 20, 2004 One of the overloaded methods of the MenuItems collection allows you to specify a position. Given an already existing context menu you could do Dim m As New MenuItem("Fred") ContextMenu1.MenuItems.Add(0, m) to add a new item to the top of the list. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.