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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top