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
  1. Home
  2. General Programming
  3. Visual Studio
  4. Console.Writeline does not write to output window

Console.Writeline does not write to output window

Scheduled Pinned Locked Moved Visual Studio
3 Posts 3 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.
  • Z Offline
    Z Offline
    zuhx
    wrote on last edited by
    #1

    Console.write and Console.writeline does not write to the output window. this was working before but for some reason no longer does. any one know how i can get it to write to the output window agin.

    E D 2 Replies Last reply
    0
    • Z zuhx

      Console.write and Console.writeline does not write to the output window. this was working before but for some reason no longer does. any one know how i can get it to write to the output window agin.

      E Offline
      E Offline
      eggie5
      wrote on last edited by
      #2

      I don't know if your really typing it like "Console.writeline", and "Console.write", or you just did that accidently when typing this... but the proper syntax is below...

      Console.WriteLine("RESPECT THE ENG");
      Console.Write("MASSIVE");

      peace out G. /\ |_ E X E GG

      1 Reply Last reply
      0
      • Z zuhx

        Console.write and Console.writeline does not write to the output window. this was working before but for some reason no longer does. any one know how i can get it to write to the output window agin.

        D Offline
        D Offline
        DAve
        wrote on last edited by
        #3

        I just tried something similar & found I had to... ' Create a tool window handle for the Output window. Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput) ' Create handles to the Output window and its panes. Dim OW As OutputWindow = win.Object Dim OWp As OutputWindowPane Dim textFileOWp As OutputWindowPane Dim found As Boolean Dim enumerator As IEnumerator ' Try to find a pane named "Output" enumerator = OW.OutputWindowPanes.GetEnumerator() found = False Do While enumerator.MoveNext OWp = enumerator.Current If OWp.Name = "Output" Then found = True textFileOWp = OWp End If Loop ' If pane not found Create one If Not found Then textFileOWp = OW.OutputWindowPanes.Add("Output") End If ' Add a new pane to the Output window. ' Add a line of text to the new pane. textFileOWp.Clear() textFileOWp.OutputString("Some Text" & CRLF)
        I hope this helps (I'm a complete novice when it comes to macro programming and am just guessing my way) DAve

        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