J
JezB
Given a reference to a Form object, I want to do some processing on each of
the ContextMenus used in that form. How can I do this easily ?
The only way I can think of is to parse the entire Controls collection and
evaluate each one to determine if it has a ContextMenu attached, and then to
keep a hashtable of each one processed to ensure I dont process the same one
more than once (if a context menu is used by several controls).
There must be an easier way surely !
the ContextMenus used in that form. How can I do this easily ?
The only way I can think of is to parse the entire Controls collection and
evaluate each one to determine if it has a ContextMenu attached, and then to
keep a hashtable of each one processed to ensure I dont process the same one
more than once (if a context menu is used by several controls).
There must be an easier way surely !