问题描述
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;usingSystem.Windows.Forms;namespaceWindowsFormsApplication1{publicpartialclassForm1:Form{ThreadthDraw;delegatevoidmyDrawRectangel();myDrawRectangelmydraw;privatePointptBegin=newPoint();privateboolblIsDrawRectangle=true;publicForm1(){InitializeComponent();}privatevoidpictureBox1_Paint(objectsender,PaintEventArgse){if(blIsDrawRectangle){e.Graphics.DrawRectangle(newPen(Brushes.Black,1),ptBegin.X,ptBegin.Y,50,50);}}privatevoidForm1_Load(objectsender,EventArgse){//图片背景初始化this.pictureBox1.Image=System.Drawing.Image.FromFile(@"D:ImageMianPic.bmp");mydraw=newmyDrawRectangel(ShowDrawRectangle);thDraw=newThread(Run);thDraw.Start();}privatevoidRun(){while(true){if(pictureBox1.Image!=null){this.BeginInvoke(mydraw);}Thread.Sleep(50);}}privatevoidForm1_FormClosed(objectsender,FormClosedEventArgse){if(thDraw!=null){thDraw.Abort();}}privatevoidShowDrawRectangle(){Rectanglerec=newRectangle(ptBegin.X*pictureBox1.Image.Size.Width/460,ptBegin.Y*pictureBox1.Image.Size.Height/350,50*pictureBox1.Image.Size.Width/460,50*pictureBox1.Image.Size.Height/350);Graphicsg=pictureBox2.CreateGraphics();g.DrawImage(pictureBox1.Image,pictureBox2.ClientRectangle,rec,GraphicsUnit.Pixel);g.Flush();}privatevoidpictureBox1_MouseLeave(objectsender,EventArgse){blIsDrawRectangle=false;pictureBox1.Refresh();}privatevoidpictureBox1_MouseEnter(objectsender,EventArgse){blIsDrawRectangle=true;}privatevoidpictureBox1_MouseMove(objectsender,MouseEventArgse){if(e.X-25<=0){ptBegin.X=0;}elseif(pictureBox1.Size.Width-e.X<=25){ptBegin.X=pictureBox1.Size.Width-50;}else{ptBegin.X=e.X-25;}if(e.Y-25<=0){ptBegin.Y=0;}elseif(pictureBox1.Size.Height-e.Y<=25){ptBegin.Y=pictureBox1.Size.Height-50;}else{ptBegin.Y=e.Y-25;}pictureBox1.Refresh();}}}
解决方案
解决方案二:
干嘛呢,没事干了
解决方案三:
该回复于2011-12-28 11:44:44被版主删除
解决方案四:
请问下怎么样才能快速的买到火车票啊回不了家了啊
解决方案五:
引用3楼ycmin520的回复:
请问下怎么样才能快速的买到火车票啊回不了家了啊
自己写个外挂吧如果足够犀利不够犀利就找个外挂吧
解决方案六:
真的是买不到了票了,就连站票也预定不了啊555555555555555555555555
解决方案七:
问下怎么样可以预定到无坐的火车票啊-----------------------不好意思,刚看到私信。预订车票,一般都是电话或者网上订票的。你想订票,打电话或者网上查看一下就可以订票了。
解决方案八:
引用5楼ycmin520的回复:
真的是买不到了票了,就连站票也预定不了啊555555555555555555555555
如果订票没有,买票没有。只能曲线回家了。买就近的火车票,然后导车回家吧。好运。
解决方案九:
引用5楼ycmin520的回复:
真的是买不到了票了,就连站票也预定不了啊555555555555555555555555
这么惨出去不要说是搞it的~