thanks alot , i'll try it out
its a custom control with a Textbox and a button
i want to show the datagridview window porton
under the TextBox
thanks again
DaveL
"cfps.Christian" <ge*******@otc.eduwrote in message
news:33**********************************@t42g2000 hsg.googlegroups.com...
Well if you know which textbox you're clicking you can use:
Point winPoint = Point.Empty;
winPoint.X = textbox1.Location.X;
winPoint.Y = textbox1.Location.Y + textbox1.Height;
newWindow.Location = this.PointToScreenPoint(winPoint);