CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Printing Items from a List Box

    I hope someone can help me to print all the items from a list box that is populated at runtime using the additem method. I am having trouble in finding any comprehensive information on printing anywhere and I am wondering if it is possible at all?! Thanx in advance!


  2. #2
    Join Date
    Aug 1999
    Location
    France
    Posts
    39

    Re: Printing Items from a List Box

    try

    for i = 0 to List1.ListCount - 1
    List1.ListIndex = i
    Printer.print List1.Text
    next i
    Printer.EndDoc





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

Featured