Click here to Skip to main content
14,768,200 members

Comments by Osman Bur (Top 1 by date)

Osman Bur 14-Jan-20 9:51am View
   
public static Control FindFocusedControl(Control control)
{
ContainerControl container = control as ContainerControl;
while (container != null)
{
control = container.ActiveControl;
container = control as ContainerControl;
}
return control;
}
//Burada da hangi kontrol Focus edilmiş ise onu verir.
var focused = FindFocusedControl(this);