none
help in a forms app RRS feed

  • Question

  • Guys i wondered if u could help me

    im having trouble trying to find the right size for a picture box

    im trying to code a minesweeper game as my first forms app but the picture boxes of the 1s and the 2s and everything

    just keep on crossing eachother what is the right size for them not to touch but still be small enough to act like a minesweeper tile?

    thank you

    and also how can i put a photo on a button and how do i make it so when you press it it shows the picture box thats under it?
    vendredi 23 octobre 2020 07:52

Toutes les réponses

  • Windows MineSweeper doesn't use PictureBoxes

    It uses IDirect3D9 to render the grid

    But you can draw it with GDI+ in OnPaint() by drawing rectangles/lines

    vendredi 23 octobre 2020 08:54
  • thanks i will try doing that (:
    vendredi 23 octobre 2020 12:19
  • Hi physicalelite,

    How is the question going? If your question has been answered then please click the "Mark as Answer" Link at the bottom of the correct post(s), so that it will help other members to find the solution quickly if they face a similar issue.

    Besides, if you need further assistance, please let me know.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    lundi 26 octobre 2020 05:54
    Modérateur