Beispiel #1
0
        protected override void OnLayout(LayoutEventArgs levent)
        {
            base.OnLayout(levent);

            foreach (Control control in Controls)
            {
                if (control is KBusyIndicator)
                {
                    Size pref = control.GetPreferredSize(ClientSize);
                    control.Bounds = ClientRectangle.Center(pref);
                }
            }
        }