TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jay Webster
NA
67
0
Background Image Resource Name
Mar 14 2011 7:10 PM
I am trying to find out if the background image in a set of pictureboxes is the same as any of my image resources. The following always returns "None" for all the pictureboxes although they all have the background image player.
foreach
(
Control
ctrl
in
this
.radGroupBox1.Controls)
{
ctrl.BackgroundImage =
Resources
.player;
if
((
Image
)ctrl.BackgroundImage == (
Image
)
Resources
.blank)
Console.WriteLine("Blank");
else if
((
Image
)ctrl.BackgroundImage == (
Image
)
Resources
.player)
Console.WriteLine("Player");
else
Console.WriteLine("None");
}
Not sure why :(
Reply
Answers (
5
)
listviewitem constructor problem
Is there a way in C# to detect if the CLIENT's computer is connected to a remote win server?