Results 1 to 3 of 3

Thread: Copying Text box list to another textbox [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Copying Text box list to another textbox [RESOLVED]

    I have a text box on form1 and I want to copy the contents to a textbox on form 2.
    The first, original textbox, has a list in it.

    I tried the following, but I got a mismatch error;

    Code:
    Form2.Textbox2.Text = Split(Form1.Text1.Text, vbCrLf)
    Any suggestions?
    Last edited by aikidokid; Sep 29th, 2003 at 03:08 PM.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  2. #2
    New Member
    Join Date
    May 2002
    Posts
    3
    why not
    VB Code:
    1. Form2.Textbox2.Text = Form1.Text1.Text

    if its a list make sure you have multiple line to true
    Live to love, Not to hate.

  3. #3

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968
    Thanks, forgot to set the multipleline property.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

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