Friday, June 7, 2019

ScintillaNET setting FindReplace dialog box location

Using ScintillaNet v2 (old), here's how you set the FindReplace dialog box location


1
2
3
4
5
6
7
8
9
ScintillaNET.Scintilla texteditor = new ScintillaNET.Scintilla();
Point apploc = new Point();
apploc = this.Location; //app location 

if (apploc.Y - this.Size.Height > 0)
 apploc = new Point(apploc.X, apploc.Y - this.Size.Height);

texteditor.FindReplace.Window.Location = apploc;
texteditor.FindReplace.Window.PointToScreen(apploc);

No comments:

Post a Comment