Hi, Why not use CustomEdit1.SetFocus in CustomSpeedButton1.Click? Gabor > Hello, > > situation: I have TCustomEdit and TCustomSpeedButton; when focus is in > edit and I press speed button then edit loses focus. > How to prevent losing focus when I press speed button? >