http://infectionist.com/extras/cshar...shot_1.6.1.zip
Just grab the top handle and whip it to the top of the screen really quickly while watching the bottom of the form, you'll see that it moves the bottom of the form up as well. It shouldn't do this. This is the full event handler I have for the MouseMove event on my "Top" edge handle:
Expand|Select|Wrap|Line Numbers
- private void hndlTop_MouseMove(object sender, MouseEventArgs e)
- {
- if(moveSizeMode == MoveSizeMode.Top)
- {
- newBounds = new Rectangle(this.Left, this.Top + e.Y - Lock.Y, this.Width, this.Height - e.Y + Lock.Y);
- if (this.Bottom - newBounds.Y < this.MinimumSize.Height)
- newBounds.Y = this.Bottom - this.MinimumSize.Height;
- if (newBounds.Y < 0)
- {
- newBounds.Y = 0;
- newBounds.Height = this.Height;
- }
- this.Bounds = newBounds;
- doPositioning(false, false);
- }
- }
Right now this is the only thing keeping me from releasing the app, so please, can someone help me figure this out?
Edt: I put in a MessageBox at the beginning and end of the if...then (newBounds.Y < 0) to just echo out the newBounds rectangle, here is the before and after:
Before: {X=358,Y=-12,Width=1142,Height=484}
After: {X=358,Y=0,Width=1142,Height=421}
There is a difference of -63 in the height after.