I have multiple forms with menus / sub-menus in them. Currently i have written
seperate codes in each form for enabling / disabling the menus.

Can someone help me in writing a function which takes form as input parameter and disable / enables the menu of that form.

Thanks in advance.