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. C#
  4. queue method to print out

queue method to print out

Scheduled Pinned Locked Moved C#
questioncsharpdata-structures
5 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
    Angelinna
    wrote on last edited by
    #1

    Using C#, how do I call the queue method printQueue to print out to rtbox a list of the (Batch No, weight) pairs stored in a data queue?

    J 1 Reply Last reply
    0
    • A Angelinna

      Using C#, how do I call the queue method printQueue to print out to rtbox a list of the (Batch No, weight) pairs stored in a data queue?

      J Offline
      J Offline
      JoeRip
      wrote on last edited by
      #2

      I think you might be mixing objects here. There is the System.PrintQueue class, which represents a queue of printer jobs queued up by Windows to submit to a printer; and there are Queue objects (System.Collections.Queue), which you use to hold collections of data. There is no "print" method for a Queue object.

      A 1 Reply Last reply
      0
      • J JoeRip

        I think you might be mixing objects here. There is the System.PrintQueue class, which represents a queue of printer jobs queued up by Windows to submit to a printer; and there are Queue objects (System.Collections.Queue), which you use to hold collections of data. There is no "print" method for a Queue object.

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

        amm actually refering to queue method and not "print" method.

        J 1 Reply Last reply
        0
        • A Angelinna

          amm actually refering to queue method and not "print" method.

          J Offline
          J Offline
          JoeRip
          wrote on last edited by
          #4

          It's still not clear what it is you want to do. 1. do you have data sitting in a System.Queue object? 2. would you like to Dequeue that queue, and put a copy of the text/values there in a text box?

          A 1 Reply Last reply
          0
          • J JoeRip

            It's still not clear what it is you want to do. 1. do you have data sitting in a System.Queue object? 2. would you like to Dequeue that queue, and put a copy of the text/values there in a text box?

            A Offline
            A Offline
            Angelinna
            wrote on last edited by
            #5

            Thats right. I have this data in pairs enqueued already and now I would like to print out to the rich t.box a list of the pairs stored in the data queue.

            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