在C#中画一条线,然后点击它就可以向上移动 [英] draw a line in C# and move it up by click on it

查看:184
本文介绍了在C#中画一条线,然后点击它就可以向上移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我点击它时,我想向上移动,当我点击头部时向右或向左转。



请帮帮我改变我的源代码。







下载应用程序 - C#Vs2008:http://s1.picofile.com /file/7670109244/Move_Hand.rar.html



下载链接:http://www.freeuploadsite.com/do.php?id = 5033



文件大小: 38.82 KB

i want to move up the hand when i click on it and turn right or left the head when i click on head.

please help me and change my source code.



download application - C# Vs2008:http://s1.picofile.com/file/7670109244/Move_Hand.rar.html

download link: http://www.freeuploadsite.com/do.php?id=5033

File size: 38.82 KB

推荐答案

啊 - 不。



我不打算从陌生人那里下载未知代码,更不用说编辑它来做一些严格指定的事情。



如果您希望人们为您修改您的代码,那就是所谓的雇用某人,并且您必须付费。我建议你把它带到vWorker(或者本周所谓的任何东西)并让它们竞标它。请注意,你会得到你所支付的费用:支付花生,买猴子。



如果另一方面你希望我们帮你自己做,那么提出具体问题,并在问题中向我们提供足够的信息以实际回答。我们对您的整个项目不感兴趣,或者通过谁知道多少代码来查找相关位。



帮助我们,帮助您。
Ah - no.

I am not going to download unknown code from a total stranger, much less edit it to do something badly specified.

If you want people to modify yuour code for your, that is called "employing someone" and that you have to pay for. I suggest you take this to vWorker (or whatever they are called this week) and let them bid on it. Be aware that you will get what you pay for: pay peanuts, get monkeys.

If on the other hand you want us to help you to do it yourself, then ask a specific question, and provide us with enough information in the question to actually answer it. We are are not interested in your whole project, or in wading through who-knows-how-much code to find the relevant bits.

Help us, to help you.


private void Form1_Paint(object sender,PaintEventArgs e)

{

Graphics g = this.CreateGraphics();

Pen blackPen = new Pen(Color.Black,5);



Point point1 = new Point(161,141);

Point point2 = new Point(161,320);

Point point3 = new Point(161,141);

Point point4 = new Point(91, 221);

Point point5 = new Point(231,221);

Point point6 = new Point(231,431);

Point point7 = new Point(91,431);

g.DrawLine(blackPen,point1,point2);

g.DrawLine(blackPen,point3,point4);

g.DrawLine(blackPen,poi nt3,point5);

g.DrawLine(blackPen,point2,point6);

g.DrawLine(blackPen,point2,point7);

}



private void button1_Click(object sender,EventArgs e)

{

Graphics g = this。 CreateGraphics();

Pen blackPen = new Pen(Color.Black,5);

Point point1 = new Point(161,141);

Point point2 = new Point(161,320);

Point point3 = new Point(161,141);

Point point4 = new Point(91,221) ;

Point point5 = new Point(231,221);

Point point6 = new Point(231,431);

Point point7 =新点(91,431);



g.DrawLine(blackPen,point1,point2);

g.DrawLine(blackPen,point3 ,point4);

g.DrawLine(blackPen,point3,point5);

g.DrawLine(blackPen,point2,point6);

g.DrawLine(blackPen,point2,point7);



g.DrawEllipse(blackPen,140,80,40,60);



}
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = this.CreateGraphics();
Pen blackPen = new Pen(Color.Black, 5);

Point point1 = new Point(161, 141);
Point point2 = new Point(161, 320);
Point point3 = new Point(161, 141);
Point point4 = new Point(91, 221);
Point point5 = new Point(231, 221);
Point point6 = new Point(231, 431);
Point point7 = new Point(91, 431);
g.DrawLine(blackPen, point1, point2);
g.DrawLine(blackPen, point3, point4);
g.DrawLine(blackPen, point3, point5);
g.DrawLine(blackPen, point2, point6);
g.DrawLine(blackPen, point2, point7);
}

private void button1_Click(object sender, EventArgs e)
{
Graphics g = this.CreateGraphics();
Pen blackPen = new Pen(Color.Black, 5);
Point point1 = new Point(161, 141);
Point point2 = new Point(161, 320);
Point point3 = new Point(161, 141);
Point point4 = new Point(91, 221);
Point point5 = new Point(231, 221);
Point point6 = new Point(231, 431);
Point point7 = new Point(91, 431);

g.DrawLine(blackPen, point1, point2);
g.DrawLine(blackPen, point3, point4);
g.DrawLine(blackPen, point3, point5);
g.DrawLine(blackPen, point2, point6);
g.DrawLine(blackPen, point2, point7);

g.DrawEllipse(blackPen,140,80,40,60);

}


这篇关于在C#中画一条线,然后点击它就可以向上移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆