doResize does not work if control is not used as maximized
Status: Beta
Brought to you by:
gserack
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);
}