Minesweeper
-
Well, i made a Minesweeper. The Cells, are a class inherit from Label. To display the images, i set the BackgroundImage. But on the Expert mode ( 50x50 ) the game is extremely heavy and laggy :( What can i do? Draw with DX? oO Using components, doesnt work, its very heavy :\ Thanks.
-
Well, i made a Minesweeper. The Cells, are a class inherit from Label. To display the images, i set the BackgroundImage. But on the Expert mode ( 50x50 ) the game is extremely heavy and laggy :( What can i do? Draw with DX? oO Using components, doesnt work, its very heavy :\ Thanks.
I've already answered your previous question: do not use controls (as you said, they're too heavy), but manage the drawing surface yourself. See my previous reply for more details. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]
-
Well, i made a Minesweeper. The Cells, are a class inherit from Label. To display the images, i set the BackgroundImage. But on the Expert mode ( 50x50 ) the game is extremely heavy and laggy :( What can i do? Draw with DX? oO Using components, doesnt work, its very heavy :\ Thanks.
Override the OnPaint method of your main control and use gdi to draw your playing field.