View Poll Results: Has this happened to you?

Voters
2. You may not vote on this poll
  • Yes

    2 100.00%
  • No

    0 0%
Results 1 to 3 of 3

Thread: Something not Working that Worked before

  1. #1

    Thread Starter
    New Member Gurgle528's Avatar
    Join Date
    Jan 2010
    Location
    Sarasota, FL
    Posts
    13

    Angry Something not Working that Worked before

    This is so simple it's embarrassing. I have 2 computers and something like this line works with one and not the other:
    Tex.Text(+", " + Names.Text = Names.Text) I get the error: Error 2 Property access must assign to the property or use its value.
    How can I fix this line. I am trying to make it so that when you click the "Add" button that the text you entered goes into the normal textbox(Tex.text) goes into the RTF Textbox(Names.Text) with a comma and a space after it(, ) to make a list of names.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Something not Working that Worked before

    Well that line
    Code:
    Tex.Text(+", " + Names.Text = Names.Text)
    Doesnt make any sense at all so I'm not surprised it doesnt work.

    If you want the text from a TextBox named "Tex" to go into an RTF textbox named Names with a comma and a space after it then you can do this:
    Code:
    Names.AppendText(Tex.Text & ", ")
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3

    Thread Starter
    New Member Gurgle528's Avatar
    Join Date
    Jan 2010
    Location
    Sarasota, FL
    Posts
    13

    Re: Something not Working that Worked before

    Thank you. I will try that.

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