Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Why I can not see the MS-DOS window with these codes?

Why I can not see the MS-DOS window with these codes?

Scheduled Pinned Locked Moved Visual Basic
helpcsharpdotnetdebuggingtutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ATC
    wrote on last edited by
    #1

    I verify that with these following codes I should see the MS-DOS windows Public Class Form1 Sub Main() System.Console.WriteLine("About VB Example") System.Console.WriteLine() ' Prompt user for identifier Dim ReplyString As String System.Console.Write("Type A or B: ") ReplyString = System.Console.ReadLine() System.Console.Write("You typed: " & ReplyString) End Sub End Class But after running debug without any error ... I saw nothing. Even if I use a button to activate similar codes ... the result is nothing! By the way I do have .NET Framework SDK Anyone can help?

    S 1 Reply Last reply
    0
    • A ATC

      I verify that with these following codes I should see the MS-DOS windows Public Class Form1 Sub Main() System.Console.WriteLine("About VB Example") System.Console.WriteLine() ' Prompt user for identifier Dim ReplyString As String System.Console.Write("Type A or B: ") ReplyString = System.Console.ReadLine() System.Console.Write("You typed: " & ReplyString) End Sub End Class But after running debug without any error ... I saw nothing. Even if I use a button to activate similar codes ... the result is nothing! By the way I do have .NET Framework SDK Anyone can help?

      S Offline
      S Offline
      svanwass
      wrote on last edited by
      #2

      It appears that you have created a windows form project as indicated by the Class called Form1. Try creating a Console app instead. This worked for me. Module Module1 Sub Main() System.Console.WriteLine("About VB Example") System.Console.WriteLine() ' Prompt user for identifier Dim ReplyString As String System.Console.Write("Type A or B: ") ReplyString = System.Console.ReadLine() System.Console.Write("You typed: " & ReplyString) End Sub End Module

      A 1 Reply Last reply
      0
      • S svanwass

        It appears that you have created a windows form project as indicated by the Class called Form1. Try creating a Console app instead. This worked for me. Module Module1 Sub Main() System.Console.WriteLine("About VB Example") System.Console.WriteLine() ' Prompt user for identifier Dim ReplyString As String System.Console.Write("Type A or B: ") ReplyString = System.Console.ReadLine() System.Console.Write("You typed: " & ReplyString) End Sub End Module

        A Offline
        A Offline
        ATC
        wrote on last edited by
        #3

        You are absolutely right! Thank a lots :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups