Results 1 to 4 of 4

Thread: Adding Text box together

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    1

    Adding Text box together

    I want to have say 10 names all with 2 text boxs by the side, making the form like this is not a problem.
    I want to add a number into textbox1 when click enter it adds it into textbox2, and clears textbox1. then when i type in a new number and hit enter it adds it to textbox2 and then clears textbox1 ready for next number etc etc .

    I hope im making sense. does anyone mind writing me some code as i have tried teaching myself to do it but have not got any luck.

    does anyone mind writing me some code?

  2. #2
    Fanatic Member
    Join Date
    Feb 2013
    Posts
    985

    Re: Adding Text box together

    Hi

    try and work it out at least, this is simple stuff. ill give you some pseudo magic

    txt2 = txt1
    txt1 = ""
    next txt.focus (you can get the next text box using this method make sure to set your tabstops properly -->SelectNextControl())

    if your still having a problem just postback
    Yes!!!
    Working from home is so much better than working in an office...
    Nothing can beat the combined stress of getting your work done on time whilst
    1. one toddler keeps pressing your AVR's power button
    2. one baby keeps crying for milk
    3. one child keeps running in and out of the house screaming and shouting
    4. one wife keeps nagging you to stop playing on the pc and do some real work.. house chores
    5. working at 1 O'clock in the morning because nobody is awake at that time
    6. being grossly underpaid for all your hard work


  3. #3
    Fanatic Member
    Join Date
    Feb 2013
    Posts
    985

    Re: Adding Text box together

    as for the event you may need an event handler. Since creating a control array is ridiculously longwinded.
    look up examples online if your stuff
    Yes!!!
    Working from home is so much better than working in an office...
    Nothing can beat the combined stress of getting your work done on time whilst
    1. one toddler keeps pressing your AVR's power button
    2. one baby keeps crying for milk
    3. one child keeps running in and out of the house screaming and shouting
    4. one wife keeps nagging you to stop playing on the pc and do some real work.. house chores
    5. working at 1 O'clock in the morning because nobody is awake at that time
    6. being grossly underpaid for all your hard work


  4. #4
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 2011
    Posts
    696

    Re: Adding Text box together

    So you have a collection of some kind of data, and based on the number as the query in the first textbox you want to generate data in the second textbox? That's my understanding so far...

    I don't get what you want added to the second textbox after the user hits enter though, that will require more explanation.
    <<<------------
    Improving Managed Code Performance | .NET Application Performance
    < Please if this helped you out. Any kind of thanks is gladly appreciated >


    .NET Programming (2012 - 2018)
    ®Crestron - DMC-T Certified Programmer | Software Developer
    <<<------------

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