[thelist] question concerning c# dynamically changing what is in a picturebox

Lightning oktellme at earthlink.net
Mon Aug 14 19:51:36 CDT 2006


pbxFloor0.BackgroundImage = myElevator.CloseElevatorDoor(i).ToString();

where pbxFloor0 is a picture box, and
myElevator.CloseElevatorDoor(i).ToString() returns an image name.

The error message says "BackgroundImage denotes a property where a method
was expected".

I tried to hardcode the image name, and got the sqame message.

What am I doing wrong?

I looked thru the methods and found
pbxFloor0.BackgroundImage.GetThumbnailImage, but I don't understand what it 
says about the abort delegat.



thanks for any help.



Laura




More information about the thelist mailing list