Re: Save file Dialog API question
- From: "Sam Hobbs" <samuel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Aug 2005 10:16:22 -0700
"Steve Easton" <admin@xxxxxxxxxxxxx> wrote in message
news:O$LozIJmFHA.268@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Sam.
>
> I'm using the Open Save dialog API from Randy's site.
>
> I can preload the file name that is displayed in Save As by using this:
> .sFile = "filename.bmp" & Space$(1024) & vbNullChar & vbNullChar
>
> I then use:
> SavePicture Picture2.Picture, OFN.sFile ( where Picture2 is the handle to
> a PictureBox )
> to write the file.
>
> However, nothing prevents the user from changing the name and leaving off
> the extension.
> However, If the user simply clicks Save, then the file is saved with the
> name in .sFile
However, nothing prevents you from changing the name and adding/changing the
extension, correct? You would do this prior to the SavePicture. You could
use a MsgBox to inform and/or ask the user about doing that.
Hopefully you understand that now. You seem to have not realized that you
could. You probably have learned more about how the Open and Save Common
Dialogs work. They don't actually open the file for you; they just help you
get the filenames.
.
- Follow-Ups:
- Re: Save file Dialog API question
- From: Steve Easton
- Re: Save file Dialog API question
- References:
- Save file Dialog API question
- From: Steve Easton
- Re: Save file Dialog API question
- From: Sam Hobbs
- Re: Save file Dialog API question
- From: Steve Easton
- Save file Dialog API question
- Prev by Date: Re: using PlaySound within a dll
- Next by Date: Re: using PlaySound within a dll
- Previous by thread: Re: Save file Dialog API question
- Next by thread: Re: Save file Dialog API question
- Index(es):
Relevant Pages
|