D
doogman
I have wrote my own icon class that places a bmp and two lines of text onto
a panel. These icons's are created dynamically and represent positions on a
map. I want to be able to click on the icon and use the icon as an index to
the data it represents. IE. click on it using a contextmenu and be able to
edit, move, and delete the icon.
I am able to actually put it on screen, add the contextmenu and select its
events, but my question is how do I know what the ControlNo is for the icon
I am selecting in the panelField.Controls list?
Should I create an array to store these controls in? And again how would I
be able to extract the Icon no in the ArrayList so that I can delete it
from the array, etc.? Basically touch that specific icon object in the
heap...
Thanks as always peoples....
doogman
a panel. These icons's are created dynamically and represent positions on a
map. I want to be able to click on the icon and use the icon as an index to
the data it represents. IE. click on it using a contextmenu and be able to
edit, move, and delete the icon.
I am able to actually put it on screen, add the contextmenu and select its
events, but my question is how do I know what the ControlNo is for the icon
I am selecting in the panelField.Controls list?
Should I create an array to store these controls in? And again how would I
be able to extract the Icon no in the ArrayList so that I can delete it
from the array, etc.? Basically touch that specific icon object in the
heap...
Thanks as always peoples....
doogman