Advertisement
stevennathaniel

Meencegah Console App Langsung Menutup

Dec 9th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.46 KB | None | 0 0
  1. Module Module3
  2.  
  3.     Sub Main()
  4.  
  5.         Console.ForegroundColor = ConsoleColor.Red
  6.         Console.BackgroundColor = ConsoleColor.DarkCyan
  7.  
  8.         Console.WriteLine("Warning")
  9.         Console.WriteLine("There is a disturbance in the force")
  10.  
  11.         'Reset the colors
  12.         Console.WriteLine("Sorry")
  13.  
  14.         'Mencegah console app langsung menutup
  15.         Console.WriteLine("Press any key to continue")
  16.         Console.ReadKey()
  17.     End Sub
  18.  
  19. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement