anyone know the solution? i need to print out the content of a listbox. thanks. urgent !!!
how to print the content of a list box ?how to print the content of a list box ?
Page 1 of 1
6 Replies - 3877 Views - Last Post: 14 July 2010 - 09:34 AM
Replies To: how to print the content of a list box ?
#2
Re: how to print the content of a list box ?
Posted 10 July 2010 - 03:09 PM
What does the ListBox contain?
#3
Re: how to print the content of a list box ?
Posted 10 July 2010 - 04:06 PM
Well... You could Draw the listbox to a bitmap, and then just print the image...
#4
Re: how to print the content of a list box ?
Posted 14 July 2010 - 07:43 AM
#5
Re: how to print the content of a list box ?
Posted 14 July 2010 - 07:49 AM
#6
Re: how to print the content of a list box ?
Posted 14 July 2010 - 09:18 AM
Well. Add a button to your form, and add a picturebox to your form. Then double click the button, and add this code:
Replace Listbox1 with whatever the name of your listbox is.
Dim img As New Bitmap(ListBox1.Width, ListBox1.Height)
ListBox1.DrawToBitmap(img, ListBox1.ClientRectangle)
PictureBox1.Image = img
Replace Listbox1 with whatever the name of your listbox is.
#7
Re: how to print the content of a list box ?
Posted 14 July 2010 - 09:34 AM
Jack Eagles1, on 14 July 2010 - 08:18 AM, said:
Well. Add a button to your form, and add a picturebox to your form. Then double click the button, and add this code:
Replace Listbox1 with whatever the name of your listbox is.
Dim img As New Bitmap(ListBox1.Width, ListBox1.Height)
ListBox1.DrawToBitmap(img, ListBox1.ClientRectangle)
PictureBox1.Image = img
Replace Listbox1 with whatever the name of your listbox is.
thanks ! =)
Page 1 of 1
|
|

New Topic/Question
Reply





MultiQuote




|