اسلام عليكم
ياليت احد يفهمني ايش وظيفة هذا الكود
هذا الكود لحفظ صورة بس سوالي وين يحفظها؟؟؟
Private Sub SaveGIFToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveGIFToolStripMenuItem.Click
'Pour éviter un bug si on ne sauvegarde pas
On Error Resume Next
Dim d As New System.Drawing.Bitmap(PictureBox1.Image)
Dim tmp As String = OpenFileDialog1.FileName()
If PictureBox1.SizeMode = PictureBoxSizeMode.Normal Then
My.Computer.Audio.Play("C:documents and settings")
MsgBox("Open a picture!")
Exit Sub
End If
tmp = Microsoft.VisualBasic.Replace(UCase(tmp), "JPG", "GIF")
d.Save(tmp, System.Drawing.Imaging.ImageFormat.Gif)
Dim answer As MsgBoxResult
answer = MsgBox("Save in GIF in the file of origin." & vbNewLine & "You finished?", MsgBoxStyle.YesNo)
If answer = MsgBoxResult.Yes Then
MsgBox("See you soon")
End
End If
End Sub