sethindeed Posted February 6, 2003 Posted February 6, 2003 I have a textbox that needs to perform certain actions on Got / LostFocus (old VB6 structure). Looks like those events are gone in net... Is there any .net equivalent ? thx Quote What I don't know keeps me excited...
*Gurus* divil Posted February 6, 2003 *Gurus* Posted February 6, 2003 Try the Enter and Leave events. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
sethindeed Posted February 6, 2003 Author Posted February 6, 2003 When I do so, my code get stuck in an infinite loop :( Here is my code TextBox1_Enter TextBox1.BackColor = SystemColors.Control TextBox1.BorderStyle = BorderStyle.Fixed3D End Sub It is just keeping this sub over and over ( changing the properties seems to launch the Enter event over and over ) Quote What I don't know keeps me excited...
sethindeed Posted February 6, 2003 Author Posted February 6, 2003 It has something to do with the borderstyle property that's ok, I will change my structure Quote What I don't know keeps me excited...
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.