Hi,
I want to add button in my form to print when click
how can i do this???????

thank you

Hi
Specify further details, what u want to print? etc..

using print dialog and like selvaganapathy said what u want to print...

I want a button when click my form will be printed

I also want the same thing. I have just made a"Clothing Design" for a school assignment, and to get extra marks i need it so it will print out the full page.

Thanks
Chris

Any heeeeeeeeeeeeeeelp pleeeeeeeeeeeeeease!!!!!!!!!!!!!!!!!!!!!

THis will print a label it might help guide you in the rignt direction.

''' at the very top of the form
Imports System.Drawing.Printing
''' new sub procedure
Private Sub printtext(ByVal sender As Object, ByVal ev As PrintPageEventArgs)
ev.Graphics.DrawString(lblQ2.Text, New Font("arial", 11, FontStyle.Regular), Brushes.Black, 120, 120)
ev.HasMorePages = False
End Sub
''' button event
Private Sub btnQ2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnQ2.Click
Try
Dim printdoc As New PrintDocument
AddHandler printdoc.PrintPage, AddressOf Me.printtext
printdoc.Print()
Catch ex As Exception
MessageBox.Show("Sorry there is a problem printing", ex.ToString())
End Try
End Sub

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.