Actually i'am new to VB.NET. i started learning. but when i run a small application in console. i cant see the result. the screen just blinks and vanishes. my code is

[ imports System ]
[ imports System.Collections ]
[ Namespace Myapp ]
[ Module Mymod ]
[ Sub Main () ]
[ Console.Writeline("Hello World") ]
[ End Sub ]
[ End Module ]
[ End Namspace ]

these is actually a simple application. the thing is i cannot see resulting screen. it just blinks and vanishes. can anyone help me spot out the problem?

Recommended Answers

All 2 Replies

after this
[ Console.Writeline("Hello World") ]

add this
[Console.Readline ()]

Agree. Its something like the getch used in Turbo C

The output is shown but the window closes before you can see it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.