Results 1 to 9 of 9

Thread: [02/03] Trans data from label to label

  1. #1

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Question [02/03] Trans data from label to label

    Hello Everyone:

    I am trying to have the user enter a number (integer) into a text box, after clicking on a button I want the number entered in the text box to appear in another text box?

    Any Ideas?

    Thanks Art
    SLEEP: A Totally Inadequate Substation For Caffeine!

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: [02/03] Trans data from label to label

    VB Code:
    1. Textbox2.Text = Textbox1.Text

    I feel like I'm missing something.
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

  3. #3

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Re: [02/03] Trans data from label to label

    Maybe I said it wrong, what I really want to do is to take the numbers from boxs 1 - 3 and average them in box 4? I was trying to make it easy for you, but I guess i made it to easy?

    Thanks

    Art
    SLEEP: A Totally Inadequate Substation For Caffeine!

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Trans data from label to label

    Get the Text from each TextBox, convert the strings to numbers, add them, divide them by the number of numbers, put the result in the last TextBox. Are there any steps there that you don't know how to accomplish in code?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Re: [02/03] Trans data from label to label

    Sorry I know what your saying, but I don't know how to code it?

    Thanks

    Art

    I am new to 2003.net
    SLEEP: A Totally Inadequate Substation For Caffeine!

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Trans data from label to label

    You don't know how to code any of it? I'm afraid I don't believe that. I'm sure you know how to get and set the Text property of a TextBox, so that's the first and last steps covered. I'd guess that you also know how to add and divide numbers too.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Re: [02/03] Trans data from label to label

    heres what I have so far, i don't know what I'm doing wrong? see attached?

    I am just starting VB.net 2003

    Thanks

    Art
    SLEEP: A Totally Inadequate Substation For Caffeine!

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Trans data from label to label

    Can you please just post the relevant code rather than attaching a project? It's nice and easy to glance at code posted in [Highlight=VB] tags and I'm more than happy to do that but I, for one, will rarely download someone else's project without very good reason. I haven't looked so I don't know but just in case your ZIP file contains binary files, which it will if you simply zipped up a project, then you're breaking the forum rules.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9

    Thread Starter
    Hyperactive Member Art W.'s Avatar
    Join Date
    Apr 2002
    Location
    In My Own Little World, But that’s OK because they know me there!
    Posts
    271

    Re: [02/03] Trans data from label to label

    Sorry about that, i am not sure where and how many mistakes i have, so i through it would be easier to go over the whole thing?

    Thanks

    Art
    SLEEP: A Totally Inadequate Substation For Caffeine!

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