Whether it's in focus or not you can add this to your timer tick event:
foreach (Control ctrl in this.Controls)
{
Point screenPos = MousePosition;
screenPos = this.PointToClient(screenP
if (screenPos.X >= ctrl.Location.X && screenPos.Y >= ctrl.Location.Y && screenPos.X <= (ctrl.Width + ctrl.Location.X) && screenPos.Y <= (ctrl.Height + ctrl.Location.Y))
ctrl.Text = Clipboard.GetText();
}
Main Topics
Browse All Topics





by: Idle_MindPosted on 2009-10-22 at 08:17:40ID: 25635202
Are you trying to get this to work while:
(a) Your app is in Focus?
(b) Your app is NOT in Focus?
Do you want the value to be pasted:
(c) Into a control in YOUR app?
(d) Into the currently focused app?