Insert large text into a textbox??
-
I have a large amount of text want to insert into a textbox. I would like to know how I can do that? Thanks Both by design time and running time
I'm not sure how much text you consider a "large amount" -- but generally all you need to do is create the
TextBox
and set theTextMode
property to "MultiLine". At design time, you can type as much as you wish in theText
property. At run time, there are any number of methods you could use to populate the value of the control: data binding, setting the value in code, loading the value from a file, etc. -
I'm not sure how much text you consider a "large amount" -- but generally all you need to do is create the
TextBox
and set theTextMode
property to "MultiLine". At design time, you can type as much as you wish in theText
property. At run time, there are any number of methods you could use to populate the value of the control: data binding, setting the value in code, loading the value from a file, etc.