Results 1 to 13 of 13

Thread: [2.0] Most efficient way to output 20 or so textboxes+labels

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2006
    Posts
    56

    Re: [2.0] Most efficient way to output 20 or so textboxes+labels

    Thanks for guiding me in the right direction. Now the fun part, writing the actual code, instead of battling .NET's inner workings lol. The funny thing is, this past week I've barely gotten to code anything in actual C#. It's mostly been trying to figure out how .NET works, and learning the IDE.

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: [2.0] Most efficient way to output 20 or so textboxes+labels

    The part about tag I was mentioning is something like this in your input validation function..
    Code:
    switch (((TextBox)sender).Tag)
    {
       case "Double" : //Validate double only input  here
       case "Integer": //Validate integer's only input here.
       case "String" : //no Validation?
    {
    So that you don't need ten different validating routines..

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width