473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help referencing control backgorund image

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

Dec 13 '06 #1
3 765
"Marc" <ma*********@hotmail.comschrieb:
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/>
Dec 13 '06 #2
hi,
sorry i relaised i am trying to reference a procedure
Herfried K. Wagner [MVP] wrote:
"Marc" <ma*********@hotmail.comschrieb:
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/>
Dec 13 '06 #3
"Marc" <ma*********@hotmail.comschrieb:
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).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Dec 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Varun | last post by:
Hello Despite all the advise i have recieved from everyone on this group i still cannot fix this error. I am fast approachin my deadline so i need to fix this asap :o I get the error whenever i...
1
by: Will | last post by:
Hi all. I'm learning VB.Net and am developing a WinForms app. I'm trying to make an app that I will use to scan in one or more than on image. I want to use a tabbed interface to hold each image....
1
by: zengou | last post by:
My application have many picturebox objects,when run it ,sometimes i will have a strange error,how to work out ,help me please!(in windows98,the error cause frequently than in windowsxp) ...
0
by: Dan Nigro | last post by:
I am trying not to use frames in asp.net but this is my problem. I have an image viewer I am trying to developed. The top portion is the (next, previous page, zoom etc). The left side is and...
4
by: elziko | last post by:
I'm using BltBit to create an image from a control: Private Function Getimage(ByVal ctlSource As Control) As Image Dim gSource As Graphics = ctlSource.CreateGraphics Dim imgSource As Image = New...
4
by: Christopher C. Bernholt | last post by:
We have a solution which contains 2 projects. The first project is a windows control and it references an assembly. The second project is a test windows application used to test the windows...
2
by: Tom | last post by:
I need to be able to reference some images stored in my VB.NET program. Normally, I would load the images into an ImageList control and use them from there (these are going to be icons). However, I...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
11
by: neovantage | last post by:
Hey all, I am using Spry Tabbed Panel for viewing my content on the web page. I used background PNG image which repeat at background of the Spry Tabbed panel. It just repeat at the first Tabbed...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.