Results 1 to 8 of 8

Thread: I need help fast again!!!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    5
    How would i print a list box. Sounds simple but i am really new to VB so please help me its for a project.

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    ok, try this:

    Code:
    Private Sub PrintListbox(Listbox As Listbox)
    Dim i As Integer
    
    For i = 0 To Listbox.ListCount - 1
        Printer.Print Listbox.List(i)
    Next
    
    Printer.EndDoc
    End Sub
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    why do you need everything so fast ??
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    maybe he's always got the runs

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by chrisjk
    maybe he's always got the runs
    BAH! That's no excuse...you should do what I do.

    Sit on a trash can with no pants on, that way you don't have anything to worry about
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

  7. #7
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    yup, its hard to explain to people if they walk in on you, so I suggest you lock your door before attempting this exercise
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  8. #8
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    what about the poor rubbish/garbage man though?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width