I’m only a beginner in C#, so simple answers would really help.
I’m trying to make a very simple game that detects a MouseClick on a PictureBox of size 50,50 (at the beginning of the game). After each successful MouseClick on the PictureBox (which has a blue BackgroundImage), I want to change to Size of the PictureBox so that it is 1 pixel smaller in Width and Height. I will then have the PictureBox move to a random location (which I already know how to do, so no help is needed for that part).
I think it may have something to do with picturebox.Resize but I’m not very sure.
This is a total general question you should look it up in the internet and dont ask it here..
btt:
http://msdn.microsoft.com/de-de/library/system.windows.forms.picturebox.aspxh
http://msdn.microsoft.com/de-de/library/system.windows.forms.control.size.aspx
in your case this would be your code:
or just:
or for the cool ones:
resp.: