如何在圆圈(Picturebox)周围移动Picturebox? [英] How Do I Move Picturebox Around Circle (Picturebox) ?
本文介绍了如何在圆圈(Picturebox)周围移动Picturebox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在RPG项目的项目中如何在图片框周围移动图片框圈。?
我的代码是:
如果e.keycode = keys.a那么
pctbx1.left = pctbx1.left +
enf
如果我使用代码,pctbx就在方形路径附近移动。
请,任何帮助非常感谢。
thankyou
解决方案
没有实际意义。你不应该使用PictureBox
,如果你想移动任何东西都没有用,只会给你带来很多麻烦。请查看我过去的答案:
在其中附加图片图片框 [ ^ ],
如何从旧图纸中清除面板 [ ^ ]。
我解释了你可以做的事情: 在C#中绘制一个矩形 [ ^ ]。
另请参阅我过去关于该主题的其他答案:
什么样的俏皮方法是Paint? (DataGridViewImageCell.Paint(...)) [ ^ ],
在面板上捕获绘图 [ ^ ],
如何加速我的vb.net应用程序? [ ^ ],
mdi子窗体之间的绘制线 [ ^ ]。
-SA
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
解决方案
Makes no practical sense. You should not usePictureBox
, 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
这篇关于如何在圆圈(Picturebox)周围移动Picturebox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文