drawimage help please
Posted: Wed Feb 12, 2014 8:28 pm
it seems that this won't work :(
what are we doing wrong even i have no clue it seems working fine in vb.net this way but not in c#
what are we doing wrong even i have no clue it seems working fine in vb.net this way but not in c#
Code: Select all
Error is
if (_clicked == false)
{
g.DrawImage(pictureBox2.Image, new Rectangle(0, 0, 39, 41));
}
else
{
g.DrawImage(pictureBox1.Image, new Rectangle(0, 0, 39, 41));
}
System.NullReferenceException was unhandledthank you
Message=Object reference not set to an instance of an object.