QUOTE(eukim82 @ 24 Feb, 2007 - 08:46 AM)

How could i save my drawing on picture box?
Assumptions: You wrote a program that drew a bunch of stuff in a pictureBox, and now you want to save that image?
How you go about this depends on what version of VB you are using. In VB6 there is the Picture property (the image property in vb6 refers to persistant graphics loaded), in .net the image property.
I am no .net expert but I belive this is the general way:
CODE
Sub SaveImage(ByVal pbImage As PictureBox, ByVal sFile As String)
Dim bmp As New Bitmap(pbImage.Width, pbImage.Height)
Dim g As Graphics = Graphics.FromImage(bmp)
Dim peArgs As New PaintEventArgs(g, New Rectangle(Point.Empty, bmp.Size))
Me.InvokePaint(pbImage, peArgs)
Dim imageFormat As Imaging.ImageFormat
imageFormat = Imaging.ImageFormat.Bmp
bmp.Save(sFile, imageFormat)
g.Dispose()
bmp.Dispose()
peArgs.Dispose()
End Sub
In VB6 you have to copy the .Image property to the .picture property
CODE
sub saveImage(pbImage As PictureBox, sFile as String)
pbImage.Picture = pbImage.Image
SavePicture pbImage.Picture, sFile
end sub
and I am not SURE about this, but I think i remeber that you file name must end in the extension you want... .bmp for bmp, .gif for gif etc.. not SURE on that one.