Auto Save Function

Use this board to post your code snippets - tips and tricks
3 posts Page 1 of 1
Contributors
User avatar
bjm0008
Dedicated Member
Dedicated Member
Posts: 69
Joined: Thu Aug 13, 2009 2:35 am

Auto Save Function
bjm0008
I've been working on a project and couldn't figure out for the life of me how to use something like a savefiledialog but have it save automatically, without browsing for and clicking save.

So I found the solution from a past project.
Code: Select all
picturebox1.Image.Save(("C:\Users\" & Environment.UserName & "\desktop\001") & ".png", _
        System.Drawing.Imaging.ImageFormat.Png)
Of course it doesn't have to save a picturebox, it can be a textbox or richtextbox.
But I'll leave it to you to figure out :).
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Auto Save Function
zachman61
thanks
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Auto Save Function
Agust1337
Nice
Top-notch casual Dating
3 posts Page 1 of 1
Return to “Quick Snips”