BlackStone Posted July 28, 2004 Posted July 28, 2004 I have a usercontrol that changes one of its properties on Leave. When you click on another control, everything is fine. However when you Tab to another control, my control reclaims focus. How do I fix this?? Quote "For every complex problem, there is a solution that is simple, neat, and wrong." - H. L. Mencken
Administrators PlausiblyDamp Posted July 28, 2004 Administrators Posted July 28, 2004 Could you post the code for the Leave event? Also is there any code in either the Validated or Validating events? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
BlackStone Posted July 28, 2004 Author Posted July 28, 2004 Private Sub UserControl1_Leave(ByVal sender As Object, ByVal e As _ System.EventArgs) Handles Me.Leave Cell.BorderStyle = Windows.Forms.BorderStyle.FixedSingle End Sub There is no code int the Validating or Validated event. Quote "For every complex problem, there is a solution that is simple, neat, and wrong." - H. L. Mencken
Diesel Posted July 28, 2004 Posted July 28, 2004 Are you sure the tab order is working correctly? Quote
BlackStone Posted July 28, 2004 Author Posted July 28, 2004 Yes. The focus goes to the next control and flickers back. Quote "For every complex problem, there is a solution that is simple, neat, and wrong." - H. L. Mencken
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.