Differences Between vbLf, vbCrLf & vbCr Constants

Constant Value Description —————————————————————- vbCr Chr(13) Carriage return vbCrLf Chr(13) & Chr(10) Carriage return–linefeed combination vbLf Chr(10) Line feed vbCr : – return to line beginning Represents a carriage-return character for print and display functions. vbCrLf : – similar to pressing Enter Represents a carriage-return character combined with a linefeed character for print and display … Read more

I’ve Written The Code For The Button’s Click Event, But Nothing Happens When I Click It At Run Time. Why?

try this: Public Class Form1 Dim a as string Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click MsgBox(“You Typed” + a + “!”) End Sub Private Sub keyentered(e As KeyEventArgs) If e.KeyCode = Keys.E Then a = “e” MsgBox(“You Typed” + a + “!”) End If End Sub if it doesnt work, add … Read more