de vb6.0 a vb.net
Publicado por dasa (13 intervenciones) el 23/01/2008 04:35:07
hola tengo un problema necesito imprimir el contenido de un listbox y el unico codigo que encontre fue en vb6.0 que es el sig
Dim i As Long
Private Sub Command1_Click()
For i = 0 To List1.ListCount - 1
Printer.Print List1.List(i)
Next
Printer.EndDoc
End Sub
Private Sub Form_Load()
For i = 1 To 25
List1.AddItem i
Next
End Sub
si alguien me puede ayudar a pasarlo a .net se los agradeceria mucho gracias.
Dim i As Long
Private Sub Command1_Click()
For i = 0 To List1.ListCount - 1
Printer.Print List1.List(i)
Next
Printer.EndDoc
End Sub
Private Sub Form_Load()
For i = 1 To 25
List1.AddItem i
Next
End Sub
si alguien me puede ayudar a pasarlo a .net se los agradeceria mucho gracias.
Valora esta pregunta


0