Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8850505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:55:09+00:00 2026-06-14T12:55:09+00:00

I am busy with a ‘home made’ solitaire game just for fun but think

  • 0

I am busy with a ‘home made’ solitaire game just for fun but think however that I worked myself into a bit of a corner and was hoping for some advice perhaps.

In short instead dragging and dropping a card to a different location I click on the card to be moved (displayed in a picturebox) facing upwards and set the visiblity to false and add the cardvalue to an ArrayList(named picFaceUpToBeMoved).

I click on a second card and then of course based on certain conditions the card will be displayed just above the card I clicked now.I create an instance of the PictureBox control setting the size and location.

PictureBox picOneFaceUpA = new PictureBox();
picOneFaceUpA.Location = new Point(42, 202);
picOneFaceUpA.Width = 90;
picOneFaceUpA.Height = 120;
picOneFaceUpA.Image = Image.FromFile("../../Resources/" + picFaceUpToBeMoved[0] + ".png");
Controls.Add(picOneFaceUpA);
picOneFaceUpA.BringToFront();

The problem I have now is how to go about in moving this card as it doesn’t have an onClick event.
Sorry, a bit inexperienced and was hoping for advice on how to overcome this issue or how I could approach this game differently.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:55:10+00:00Added an answer on June 14, 2026 at 12:55 pm

    Try adding an event handler to MouseClick.

    More documentation can be found here: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseclick.aspx

    And have a look at all other events there are available, for dragging you could use MouseDown, MouseMove, MouseUp, etc.

    A list of available events can be found here: http://msdn.microsoft.com/en-us/library/1dk48x94.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My busy loading indicator basically works by detecting clicks. However, I just noted that
I've been busy with creating a memory game (card matching), but I've come across
I'm busy programming a game, but I've run stuck on something. I've been able
I am busy creating a less complicated version of NinePatchDrawable that tiles the inner
I'm busy working on a windows phone application that calls a servlet that then
I'm busy introducing myself to jQuery by implementing a little system where onmouseover on
I'm busy to enable login stuff via facebook oauth on my website, but the
I'm currently busy coding a hangman game in VB.NET. As a wordlist, I have
I'm busy debugging someone else's code and I've come across something I think is
I am busy working on a mobile application that retrieves data from a web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.