Help referencing control backgorund image

  • Thread starter Thread starter Marc
  • Start date Start date
M

Marc

Hi,

The below code does not work..... Anyone know how this is done? If i
say 'is nothing' instead of is DrawCross () it works fine???

If ContextMenuStrip1.SourceControl.BackgroundImage is DrawCross ()
then
msgbox ("test")
 
Marc said:
The below code does not work..... Anyone know how this is done? If i
say 'is nothing' instead of is DrawCross () it works fine???

If ContextMenuStrip1.SourceControl.BackgroundImage is DrawCross ()
then

What's 'DrawCross'?
 
Marc said:
sorry i relaised i am trying to reference a procedure

I suggest to post the implementation of this procedure because it's likely
that it's causing the behavior you describe. Note that the 'Is' operator
will compare object identity (references). It won't compare images if they
contain the same picture (pixel colors).
 
Back
Top