-
keyboard handler
I want my Form to handle keyboard strokes. I search the msdn and found the method to do so, but the examples they have are for a textBox. Like textBox1_KeyPressed(...). I want to be able to handle the keyboard as long as the Form is active. How can I do this?
-
It should be the same thing for a Form. In fact I am sure of it.
-
Ok, next question. Can I create a grid of images? I want to make a board, each space will have an image which of course would be able to change? Can this be done in a convinient way so I can access the images with some kind of indexes?
I could create a 2D array of Images and place them on the Form, but this would take some time placing and alligning them, so if there was a grid to do this for me...
-
Yeah. There is an object for this... Its ImageSet or something to that effect. Just google it or wait for someone more up on their C# to reply... I think this is Magos' chance to shine.
-
I started having a nagging feeling that wasn't the right name of the class. And I do obsess about giving people misinformation like that.
You want a ImageCollection. Enjoy.
-
You can just blt it normally with GDI if you wish as well.