Results 1 to 3 of 3

Thread: textbox prob

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Location
    Calgary Canada
    Posts
    10

    textbox prob

    On one form when i click a button called cost, I need the text box beside it to give me the contents of a textbox on another form

    ie.

    textbox20.text = textbox16.text on form 2 ??????????

    help please and thanks
    Thanks
    Moe

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    you need to declare Form2 somewhere first ( so it's available throughout Form1's controls , eg: button clicks ) , something like this....
    VB Code:
    1. Dim frm2 As New Form2()
    2. frm2.Show()
    3.  
    4. '/// then in a sub ( like a button click ) ...
    5. textbox20.text = frm2.textbox16.text
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    so, in other words, you have to treat each form in your app as objects? and the controls of that object are simply object properties?

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