|
-
Apr 16th, 2006, 10:11 PM
#10
Re: [2.0] Most efficient way to output 20 or so textboxes+labels
 Originally Posted by ThisIsMyUserName
Remember, I've been coding in c#/.NET for roughly a week. I'm a newbie. Layed out in english, you're saying I should do this:
1> Create a "global" event that first strips everything other than 0-9, decimal, negative.
2> In the designer, point each text box to this event.
3> In the form load area add this:
this.textInput1.KeyDown += new System.Windows.Form.KeyEventHandler(this.text1ValidationEvent)
Repeat this for all my text boxes (this.text2ValidationEvent , etc.). Then write the specific validation methods and name them accordingly?
Not bad for a self-proclaimed newbie.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|