How do you pause a program until a button is pressed in JAVA?

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

Was this solution helpful to you?

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:

Just Added Q & A:

Find solution

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.