Perform action based on contextmenustrip value
Hi,
i have form1 with treeview as port1,port2...
i created another form say form2
now consider port1 has contextmenustrip1 with item "Add device" which calls form2 on click
and port2 has contextmenustrip2 with items "Edit" and "Delete" where edit calls form2 on click
now depending on value of "AddDevice" or "Edit" form2 performs specific functions accordingly
I need to know how form2 detemines what item of contextmenustrip has been selected
to perform the required action
please help me.