آقا ما یک فرم داریم می خواهیم همیشه فوکوس روش باشه.
this.TopMost = true;
[DllImport("User32.dll", CharSet=CharSet.Auto)]
public static extern uint SetForegroundWindow(IntPtr hWnd);
protected override void OnDeactivate(EventArgs e)
{
SetForegroundWindow(this.Handle);
this.Select();
this.Focus();
this.Validate();
this.Refresh();
this.Show();
base.OnDeactivate (e);
}
اصلا اینا کار نمی کنه
چیکار میشه کرد :?: