K
kimiraikkonen
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.Image
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Generate.Click
TextBox2.Text = TextBox1.Text
End Sub
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Save.Click
If savedialog.ShowDialog = Windows.Forms.DialogResult.OK Then
myimage.Save(savedialog.FileName)
End If
End Sub
End Class
Thanks.
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.Image
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Generate.Click
TextBox2.Text = TextBox1.Text
End Sub
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Save.Click
If savedialog.ShowDialog = Windows.Forms.DialogResult.OK Then
myimage.Save(savedialog.FileName)
End If
End Sub
End Class
Thanks.