you use save dialog box for specifying filename. saving is easy with SavePicture method of picturebox control. you can use a default filename if you do not want to use dialog box control. note that specifyin filename extensions is and easy way to save file in different formats(.bmp, .jpg, .ico) with SavePicture method.
quote:Takeshi wrote:
Hi, how to save the picture(to BMP, JPG, or GIF) from picture box without using save dialog box ?
thanks.
By default you can only save a picture as a BMP as BadaBandar suggests using the SavePicture function. If you want to save as a jpg then are are some sub classing you can do or use Bmp2jpeg.dll do a web search for this.
I've been programming with VB for 13 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.