int i = tb.SelectionStart; ... Point pt = tb.GetPositionFromCharIndex(i); pt.Y += (int)Math.Ceiling(tb.Font.GetHeight()); pt.Y += 2; using (Graphics g = Graphics.FromHwnd(tb.Handle)) { SizeF size = g.MeasureString(tb.Text, tb.Font); if (size.Width > tb.Width) { // float length = size.Width % txtintellisense.Width; pt.X += tb.Width; } else pt.X += (int)size.Width; } Point point = tb.Location; pt.X += point.X; pt.Y += point.Y; this.dGVinvisible.Location = pt; this.dGVinvisible.BringToFront();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)