Login Register






How do i add text in a box? vb filter_list
Author
Message
How do i add text in a box? vb #1
Hello im, trying to insert text so when i hit the button it will do this,



hello
my
name
is
eddie


How do i do this?

Reply

RE: How do i add text in a box? vb #2
That depends on whether you are referring to VBS text box's or DOS.
Send me a private message with clarification and I'll be more than happy to help out.

Reply

RE: How do i add text in a box? vb #3
(08-25-2014, 01:05 PM)bcoppell Wrote: That depends on whether you are referring to VBS text box's or DOS.
Send me a private message with clarification and I'll be more than happy to help out.

lol DOS has a TextBox and Button controls, since when?... I really don't get what you're trying to hint at here.

You can do that like this:
Code:
textBox1.Lines = new[] { "hello", "my", "name", "is", "eddie" };

Edit: VB.net
Code:
TextBox1.Lines = {"hello", "my", "name", "is", "eddie"}
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]

Reply

RE: How do i add text in a box? vb #4
you can replace space with newline ("\n");

Reply

RE: How do i add text in a box? vb #5
you can replace space with newline ("\n");

Reply

RE: How do i add text in a box? vb #6
Insert a TextBox in the Form

Keeping the textbox selected, look for the Text property in the properties window. Defaul value should be Text1, delete it.

Next, Add a Command Box

Keep it selected and similarly, add the desired text over the box in the Caption property.

Next Double click on Command Box to access the code editor.

before the "End Sub" statement, add the following line:

Text1.text = "Hello my name is this and that "

Save and then try running it.


[/quote]
[Image: MUJ8qSW.png]
-----------------------------------
Now learning:
Android Development, Java
Working on:
An FTP Client for Android
-----------------------------------

Reply

RE: How do i add text in a box? vb #7
(09-01-2014, 08:26 AM)ArkPhaze Wrote:
(08-25-2014, 01:05 PM)bcoppell Wrote: That depends on whether you are referring to VBS text box's or DOS.
Send me a private message with clarification and I'll be more than happy to help out.

lol DOS has a TextBox and Button controls, since when?... I really don't get what you're trying to hint at here.

You can do that like this:
Code:
textBox1.Lines = new[] { "hello", "my", "name", "is", "eddie" };

Edit: VB.net
Code:
TextBox1.Lines = {"hello", "my", "name", "is", "eddie"}



Here, this is a DOS command that displays a small, very basic text box:

Msg * "your text"

Reply

RE: How do i add text in a box? vb #8
(09-01-2014, 08:26 AM)ArkPhaze Wrote:
(08-25-2014, 01:05 PM)bcoppell Wrote: That depends on whether you are referring to VBS text box's or DOS.
Send me a private message with clarification and I'll be more than happy to help out.

lol DOS has a TextBox and Button controls, since when?... I really don't get what you're trying to hint at here.

You can do that like this:
Code:
textBox1.Lines = new[] { "hello", "my", "name", "is", "eddie" };

Edit: VB.net
Code:
TextBox1.Lines = {"hello", "my", "name", "is", "eddie"}



Here, this is a DOS command that displays a small, very basic text box:

Msg * "your text"

Reply

RE: How do i add text in a box? vb #9
(09-01-2014, 08:26 AM)ArkPhaze Wrote:
(08-25-2014, 01:05 PM)bcoppell Wrote: That depends on whether you are referring to VBS text box's or DOS.
Send me a private message with clarification and I'll be more than happy to help out.

lol DOS has a TextBox and Button controls, since when?... I really don't get what you're trying to hint at here.

You can do that like this:
Code:
textBox1.Lines = new[] { "hello", "my", "name", "is", "eddie" };

Edit: VB.net
Code:
TextBox1.Lines = {"hello", "my", "name", "is", "eddie"}



Here, this is a DOS command that displays a small, very basic text box:

Msg * "your text"

Reply

RE: How do i add text in a box? vb #10
(09-16-2014, 02:47 PM)bcoppell Wrote:
(09-01-2014, 08:26 AM)ArkPhaze Wrote:
(08-25-2014, 01:05 PM)bcoppell Wrote: That depends on whether you are referring to VBS text box's or DOS.
Send me a private message with clarification and I'll be more than happy to help out.

lol DOS has a TextBox and Button controls, since when?... I really don't get what you're trying to hint at here.

You can do that like this:
Code:
textBox1.Lines = new[] { "hello", "my", "name", "is", "eddie" };

Edit: VB.net
Code:
TextBox1.Lines = {"hello", "my", "name", "is", "eddie"}



Here, this is a DOS command that displays a small, very basic text box:

Msg * "your text"

You don't even understand what a textbox is... That would be a message box. And that's not DOS just because it invokes a window to pop up, that's the program msg.exe...
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]

Reply