How to write a multy line text in visual basic?
-
I started using visual basic and I am making a program that when a button is pressed it writes a text line now I want ,and dont know how to make 2 things 1. I press one button which puts one line "high portb.7" (exp) now i press another button which puts the line "high portb.6" (exp) now it just puts everything in one row and I need to have it row after row so one line=one row so instead of high portb.7high portb.6 i have high portb.7 high portb.6 and the second thing is that I cannot put 2 same lines between 2 pause lines so you have 2,3,4 etc. lines and after you have a line pause and value 200 (esp) it look like this high portb.7 pause 200 high portb.6 pause 200 now I want that it can not be high portb.7 pause 200 high portb.6 high portb.6 pause 200
-
Answer:
part 1, sounds like you just need a linefeed to go in there, have it print a <BR> or a VBCRLF to get it to the next line. Part 2, not sure if you want to show a pause after each one or not, if so, just put that as part of your vbcrlf have it to a print(vbcrlf+"pause 200"+vbcrlf) after each button is pressed.
Lav at Yahoo! Answers Visit the source
Other answers
You need to insert a carriage return & line feed character in your text at the point you want a new line to start. VB has an intrinsic (built in ) constant for this purpose called vbCrLf str = "Hello " & "World" prints as: Hello World str = "Hello " & vbCrLf & "World" prints as: Hello World
Related Q & A:
- How can you change the line color in Visual Studio?Best solution by Stack Overflow
- How to delete a particular line from a file?Best solution by Stack Overflow
- How to start a clothing line?Best solution by Yahoo! Answers
- How to write a visual poem?Best solution by Yahoo! Answers
- How do you use the Contains Function in Visual Basic?Best solution by go4expert.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.