Question class communicating with form

JpR

New member
Joined
Oct 6, 2011
Messages
1
Programming Experience
3-5
Hi all,

(I'm new to forum so if I've made any mistakes of etiquette please be patient!)

here's my setup - I have a form that displays a user control. In fact there are 3 different UCs depending on the dept that my user works in (so different department sees different columns in the grid). Each UC has a right-click menu that has the same menu options (e.g. 'Assign Operator to Job') regardless of dept.

I only want to code the menu options (and their actions) once using static(?) class or module.

So, on the datagrid when user right-clicks I need to tell the class/module which UC the click came from. I've tried this by passing a reference of 'Me' to the class/module.

I then expected that in the class/module I could type 'Me.' and I would see a list of the menu items from the form right-click. But I don't see anything, that is to say the class/module does not know what the 'Me' represents?

How do I enable the class/module to see the items from the form, bearing in mind it could be any one of the 3 UCs in question?


Thanks for any help you can give!
JpR
 
Back
Top