Posted 26 July 2018, 2:36 am EST
i program in vb.net, but had my son (who knows c#) show me how your example worked and I now have a working version… I was able to keep the image icon and even add the word print to the button…
Public Class ReportPreview
Private WithEvents tsbPrint As New ToolStripButton("Print")
Private Sub ReportPreview_Load(sender As Object, e As EventArgs) Handles Me.Load
tsbPrint.Image = Viewer1.Toolbar.ToolStrip.Items.Item(2).Image
Viewer1.Toolbar.ToolStrip.Items.RemoveAt(2)
Viewer1.Toolbar.ToolStrip.Items.Insert(2, tsbPrint)
End Sub
Private Sub tsbPrint_Click(sender As Object, e As EventArgs) Handles tsbPrint.Click
Viewer1.Print(True, True, True)
Me.Close()
End Sub
Thanks for all your help!