|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help referencing control backgorund imageHi,
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" <marc_cro***@hotmail.com> schrieb: What's 'DrawCross'?> 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 -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> hi,
sorry i relaised i am trying to reference a procedure Herfried K. Wagner [MVP] wrote: Show quoteHide quote > "Marc" <marc_cro***@hotmail.com> schrieb: > > 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'? > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/> "Marc" <marc_cro***@hotmail.com> schrieb: I suggest to post the implementation of this procedure because it's likely > sorry i relaised i am trying to reference a procedure 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). -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Estimates on money lost because of VB.NET
Connection string in app.config for class library Text Box Spell Check Re: Great Reasons Not To Learn VB.NET - PART 1 time difference Strings and Resource Files Looping Through All Tables in a SQL Server Database Help!! Domain privs to run standalone .Net EXE from domain account? Can't maximize COM error in vb.net2 |
|||||||||||||||||||||||