Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Minesweeper

Minesweeper

Scheduled Pinned Locked Moved C#
game-devquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Moon Boy
    wrote on last edited by
    #1

    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.

    H R 2 Replies Last reply
    0
    • M Moon Boy

      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.

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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]

      1 Reply Last reply
      0
      • M Moon Boy

        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.

        R Offline
        R Offline
        Robert Rohde
        wrote on last edited by
        #3

        Override the OnPaint method of your main control and use gdi to draw your playing field.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups