1
try this
public partial class Form1 : Form
{
bool _mouseDown = false;
Point startPt;
public Form1()
{
InitializeComponent();
}
private void menuStrip1_MouseDown(object sender, MouseEventArgs e)
{
_mouseDown = true;
startPt = e.Location;
}
private void menuStrip1_MouseMove(object sender, MouseEventArgs e)
{
if (_mouseDown == true)
{
Point currentPos = PointToScreen(e.Location);
Location = new Point(currentPos.X - startPt.X, currentPos.Y - startPt.Y);
}
}
private void menuStrip1_MouseUp(object sender, MouseEventArgs e)
{
_mouseDown = false;
}
}
Accepted 0
again Frogleg, thumps up :)
good example..
0
Thank you :-)