Hello,
I want to save a picture using that code and i have a read-only
textbox on the picturebox1 named "textbox2".
I want users to enter their custom text using "textbox1" and save the
image with the text associated to textbox2.text (will be saved/
displayed on picturebox1)
But when i save the picturebox1 is saved empty textbox.
How can i do that?
Public Class Form1
Dim myimage As Bitmap = picturebox1.Ima ge
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e
As System.EventArg s) Handles Generate.Click
TextBox2.Text = TextBox1.Text
End Sub
Private Sub Save_Click(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles Save.Click
If savedialog.Show Dialog = Windows.Forms.D ialogResult.OK Then
myimage.Save(sa vedialog.FileNa me)
End If
End Sub
End Class
Thanks.