大哥大姐们请给小弟点指点:
就是像msn那样去掉了TitleBar之后,托拽其控件的任何一个位置都会使整个控件移动。
void Form1_MouseMove(object sender, MouseEventArgs e)
{
if (isMouseDown != false)
{
this.Left += e.X - preX;
this.Top += e.Y - preY;
preX = e.X;
preY = e.Y;
}
//throw new Exception("The method or operation is not implemented.");
}
我这么写不行~出现残像~
高手帮帮忙~谢谢了









谢谢~

我看了C#1周了(把c#入门经典看了看),对"事件"那块很头疼~感觉像c++里的函数指针,又有点像MFC里的消息映射~
快大三了