Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
im in project of rpg game and how do i move picturebox around picturebox that image is circle.?

my code is :

if e.keycode = keys.a Then
pctbx1.left = pctbx1.left +
enf
if i use code , the pctbx is moved just around square path.

please, any help greatly appreciated.
thankyou
Posted
Comments
Sergey Alexandrovich Kryukov 29-Apr-14 12:59pm    
Please add the tag "System.Windows.Forms". Or is it something else.
—SA

1 solution

Makes no practical sense. You should not use PictureBox, it is not helpful if you want to move anything, will only add you a lot of hassles. Please see my past answers:
Append a picture within picturebox[^],
How do I clear a panel from old drawing[^].

I explained what you can do instead: draw a rectangle in C#[^].

See also my other past answers on the topic:
What kind of playful method is Paint? (DataGridViewImageCell.Paint(...))[^],
capture the drawing on a panel[^],
How to speed up my vb.net application?[^],
Drawing Lines between mdi child forms[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900