Console.ReadKey.KeyChar : Console « System « VB.Net by API






Console.ReadKey.KeyChar

  

Module Module1

    Sub Main()

        Dim strChar As String
        Console.Write("Enter a character: ")
        strChar = Console.ReadKey.KeyChar
        'strChar = Console.ReadKey(True).KeyChar
        Console.WriteLine()
        Console.WriteLine("You just entered {0}.", strChar)


    End Sub

End Module

   
    
  








Related examples in the same category

1.Console.BackgroundColor
2.Console.Clear()
3.Console.ForegroundColor
4.Console.LargestWindowHeight
5.Console.ReadKey
6.Console.ReadLine()
7.Console.Title
8.Console.WindowHeight
9.Console.WindowWidth
10.Console.WriteLine