1 Replies - 207 Views - Last Post: 26 June 2012 - 01:16 PM Rate Topic: -----

#1 bshiz2  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 25-June 12

Question: How To Create And Move A Circle In A Maze

Posted 26 June 2012 - 01:03 PM

Hi im a beginner in visual basic and i am working on a maze that that your are supposed to move a ball or circle using he arrow keys and i can not figure out how to make my circle move thanks
Public Class frmMaze
02
 
03
 
04
 
05
    Private Sub frmMaze_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
06
 
07
        If e.KeyCode = Keys.Up Then
08
 
09
        End If
10
    End Sub
11
 
12
    Private Sub frmMaze_Load(sender As Object, e As EventArgs) Handles MyBase.Load
13
 
14
    End Sub
15
 
16
    Private Sub frmMaze_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
17
        Dim brush As New SolidBrush(Color.Black)
18
        Dim g As Graphics = Me.CreateGraphics
19
        g.FillEllipse(brush, 50, 40, 10, 10)
20
 
21
    End Sub
22
 
23
End Class



Is This A Good Question/Topic? 0
  • +

Replies To: Question: How To Create And Move A Circle In A Maze

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 6463
  • View blog
  • Posts: 23,497
  • Joined: 12-June 08

Re: Question: How To Create And Move A Circle In A Maze

Posted 26 June 2012 - 01:16 PM

Do not create a duplicate topic. Click the 'report' button on the post and explain you want the post moved from there to here.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1