int x = ((TextBox)sender).Cursor.HotSpot.X; int y = ((TextBox)sender).Cursor.HotSpot.Y;I suggest using a ContextMenu as your "Popup" window.
private void MyTextBox_KeyUp(object sender, KeyEventArgs e) { if (e.KeyValue == 190) { int x = ((TextBox)sender).Cursor.HotSpot.X; int y = ((TextBox)sender).Cursor.HotSpot.Y; this.oContextMenu.Show((TextBox)sender, new Point(x+100, y+10)); } }You'll have to play with the x,y coordinates.
this.oContextMenu.MenuItems.Add(new MenuItem("Number One")); this.oContextMenu.MenuItems.Add(new MenuItem("Number Two"));You can even set up a Popup event handler for the ContextMenu so the user can select an item.
this.oContextMenu.Popup += new System.EventHandler(this.oContextMenu_Popup); . . . private void oContextMenu_Popup(object sender, EventArgs e) { // do something here with selection }~~Bonnie