lusty_learner
New member
Hi there,
I am a new bee to the VB.NET. I just opened Visual studio and created a console type application and put the following code in Module
Module Module1
Sub Main()
PrintPay(2,3)
End Sub
sub PrintPay(ByVal hour as double, ByVal wage as Double)
Console.Writeln("The total amoun is {0:c}" , hour*wage)
'i was just wanted to stop the command window after displaying the result 'but not sure what command to use
End Sub
End Module
The above code works and displays the result. I am fine with that but just know how to stop the command window from disappearing. I just can't see the result in the window its just gone.
Now Question:
Can not I just write this code in a note pad or text pad and use the commands that i need to to run this sample code from command prompt? I mean like java?
Also please help how to stop the command window from disappearing.
thanks
-D
I am a new bee to the VB.NET. I just opened Visual studio and created a console type application and put the following code in Module
Module Module1
Sub Main()
PrintPay(2,3)
End Sub
sub PrintPay(ByVal hour as double, ByVal wage as Double)
Console.Writeln("The total amoun is {0:c}" , hour*wage)
'i was just wanted to stop the command window after displaying the result 'but not sure what command to use
End Sub
End Module
The above code works and displays the result. I am fine with that but just know how to stop the command window from disappearing. I just can't see the result in the window its just gone.
Now Question:
Can not I just write this code in a note pad or text pad and use the commands that i need to to run this sample code from command prompt? I mean like java?
Also please help how to stop the command window from disappearing.
thanks
-D