Please Help me i'm ready make a sample form that have main panel and some control on it and have one picturebox and i want to make a label on picturebox but when save image show label in behind picturebox My Form Sample Design
My Save Button Code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Try
Dim b As New Bitmap(Panel1.DisplayRectangle.Width, Panel1.DisplayRectangle.Height)
Panel1.DrawToBitmap(b, Panel1.ClientRectangle)
b.Save("D:\TestFile.jpg")
'Dim pd As New System.Drawing.Printing.PrintDocument
'AddHandler pd.PrintPage, AddressOf OnPrintPage
'pd.Print()
Catch ex As Exception
MsgBox("Printing Problem" & Chr(13) & ex.Message, MsgBoxStyle.Exclamation)
End Try
End Sub