Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a multiline text box which i would like to add multiline text to.

 

i tried to accomplish this like so.


private void WhoCares()
{
_textCreated += ("Public " + words[1] + " " + words[2] + "()\n {get{return " + words[2] + ";}/n + "set{ " + words[2] + "= value;}/n}");

txtProperties.Text = _textCreated;
}

 

the "/n" is not creating new lines though it is simply displayed in the text.

am i going to have to edit the Lines[] property directly?

that seems like a lot of work compared to /n..... is there a 3rd way?

 

thanks

brandon

i'm not lazy i'm just resting before i get tired.
Posted

I didn't test this but I think that if you replace the /n with chr(13) it would work...

 

chr(13) = Enter Key

 

 

 

Alex :D

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...