|
-
Mar 9th, 2010, 01:44 AM
#1
Thread Starter
Addicted Member
Tracking mouse clicks within a group control
Hey Guys,
Glad to see some of the great minds are still here. I'm going to be frequenting this plethora of knowledge for the next couple of weeks as I attempt to complete my capstone software engineering class and finally get my undergrad. As usually I will typically need information or guidance. Since this is homework based. I have found my first issue. Allow me to digress....
The task given to my team is to create a checkers game which will have the capability to pay either player vs player or player vs cpu. Before I can begin to work on logic I need to cross the hurdle of detecting mouse movement. I have created the board which consists of 64 panels inside a groupbox. Each panel will have 4 images layers on top with the .visible property set to false. I am familiar with mouse click events to a degree but apparently lack some of the know how required.
Anyone know of any sources I can read referring to mouse clicks and how to track them? I'm pretty much trying to accomplish the following and don't know where to start. Mouse clicks aren't extensively covered in the documents/texts I have.
On click event
If mouse click is inside panel and mouse click is on checker image Then
Next mouseclick sets checker.visible = true (on next panel)
First checker.visible = false
End If
I could be way off here. I could be completely wrong uses just picturebox controls and may need to dive a lot deeper and create a checker piece class. I just don't know at this point.
Just looking for some guidance from experienced individuals. Good to see you all again.
Later.
Abrium
Asking the beginners questions so you don't have to!
If by chance hell actually froze over and I some how helped you... Please rate.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|