Question:
Visual Basic.net vbCRLF Question. PLEASE READ?
mandie16
2007-09-18 21:16:10 UTC
Simple vbCRLF
i want the output box to behave like a tape, showing the results of the sum (imputed in two text boxes) along with the problem.
I know about the multiline property but i don't know how i would specifically code the vbCRLF . Please help.
Four answers:
Nishan Saliya
2007-09-18 22:14:45 UTC
VBCrLf is used to create a new line. It is equal to VBNewLine. Following will show you how to work it out in a text box and a message box. Following code is written in a command button click ebent



Private Sub Button_Click()

Dim x As Integer

Dim y As Integer

Dim ans As Integer

x = 5

y = 6

ans = x + y

' In a text box – Textbox must be multilined to work with VBCrLf

TxtResult = x & " + " & y & vbCrLf & ans

' In a message box

MsgBox "Answer for " & x & " + " & y & vbCrLf & ans, vbOKOnly, "Answer"

End Sub



Hope this helps!
?
2016-09-05 23:28:30 UTC
Somewhat of a visible puppy proprietor. There are unique puppies that I like judging at the appear, and others I dislike, as soon as once more, ONLY judging by means of the appear. How the puppy *LOOKS* is the very first thing I truthfully see with my eyes. However, I could no longer undertake a puppy whose persona I would not like, regardless of how lovely. I could as a substitute opt for an unsightly puppy with a first-rate temperament. So, appears don't seem to be all I take care of, however they play a tremendous function whilst I'm settling on a puppy. It's particularly the primary influence I get of the puppy is how he appears. That's what most likely strucks me in a puppy. I'm moderately of a choosy man or woman. I'm no longer a large fan of the way in which such a lot Hounds appear or the way in which Poodles appear. I'm no longer a tremendous curly coat fan. I'm no longer a large fan of all white puppies both.
Shahzad Ahmed
2007-09-18 21:47:34 UTC
here answer contains the sum of two numbers and question contains question being displayed.



txtResult is the textbox which contains results (i.e. both question and its answer)



dim answer as int

dim question as string



txtresult.text= question +vbCRLF+ answer
topdn
2007-09-18 21:42:32 UTC
OK we read


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...