Menu

#5 doResize does not work if control is not used as maximized

v1.0_(example)
open
nobody
5
2006-01-11
2006-01-11
kevini
No

The doResize event passes in the base.left and
base.top for the setwindowpos, which cause the control
to jump around when you move it within a winform.

The fix is below:

public void doResize(object sender, EventArgs e)
{
SetWindowPos(this.hwndScintilla, 0, 0, 0, base.Width,
base.Height, 0);
}

Discussion


Log in to post a comment.