Home All Groups Group Topic Archive Search About

"Save As" question & file extensions

Author
23 Mar 2006 1:56 PM
Sandy
Hello -

I am confused as to how VB 6 saves projects.  I would like to be able to
make a folder for each day, say, 032306, copy the project I'm working on and
put it in there.  I realize if you do this, you have to do a "Save As" or it
just makes a reference to the form residing in another folder and any changes
you might make on 3/23/06 would be reflected in all prior copies of the form.
Does that mean I have to actually rename the form each time, or is it enough
to right click, pick "Save As" and put it in the new folder? 

Also, why is it that if I look at the files in Explorer, some of the forms
have another form with an .frx extension too?  Why some and not others? 
What's the purpose of the file?

What is the purpose of the .vbw file?

Any attempts to clear up my fuzzy mind on these issues will be greatly
appreciated!  I've been working with other programs of late and apparently
have forgotten Visual Basic 6 basics . . .

--
Sandy

Author
23 Mar 2006 3:24 PM
Ken Halter
Show quote Hide quote
"Sandy" <Sa***@discussions.microsoft.com> wrote in message
news:674C3C56-936A-4343-A152-4BCD57CCB0D7@microsoft.com...
> Hello -
>
> I am confused as to how VB 6 saves projects.  I would like to be able to
> make a folder for each day, say, 032306, copy the project I'm working on
> and
> put it in there.  I realize if you do this, you have to do a "Save As" or
> it
> just makes a reference to the form residing in another folder and any
> changes
> you might make on 3/23/06 would be reflected in all prior copies of the
> form.
> Does that mean I have to actually rename the form each time, or is it
> enough
> to right click, pick "Save As" and put it in the new folder?

If you're using SourceSafe, a lot of what you want is built in and you can
get to any version of the form at any time (it's a pita sometimes but still
possible)

fwiw, my ComGuard add-in has 'Project Snapshot' functionality that will
create a copy of the entire project using an "auto generated" name. For
example, if your project is called Project1, you click on 'Project Snapshot'
and a few seconds (at most) later, you'll have a folder called "Project1
2006.03.23-07.14.45" (obviously time stamped <g>) that contains the entire
project along with the latest version of your binary (exe/dll/ocx/whatever).
The add-in can optionally do this automatically each time you compile so
you'll have a copy of the source that was used to build the binary.

> Also, why is it that if I look at the files in Explorer, some of the forms
> have another form with an .frx extension too?  Why some and not others?
> What's the purpose of the file?

There are several reasons VB creates these files. Basically, they have the
same extension as the designer with the last character replaced by an "X"
(frx for frm files, ctx for ctl files, etc). They hold any graphics you load
at design time, any multi-line text you enter into a property window or
anything else that won't fit on a single line or can't be stored as plain
text.

> What is the purpose of the .vbw file?

That keeps track of your window positions and a few other details about your
working environment that were in effect the last time you worked on that
project. Some people like the way that works but it can really slow down the
process of opening large projects so quite a few people delete it or clear
its contents and set it to Read-Only (ComGuard does that too)

> Any attempts to clear up my fuzzy mind on these issues will be greatly
> appreciated!  I've been working with other programs of late and apparently
> have forgotten Visual Basic 6 basics . . .

Welcome back from the dark side <g>

> --
> Sandy

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Author
23 Mar 2006 10:03 PM
Sandy
Thanks so much for your reply, Ken!!  Indeed my mind is beginning to feel
less fuzzy . . .

I downloaded the trial copy of ComGuard, but haven't had much time today to
take it for a spin.  I'll probably have time tomorrow.  It sounds like it
would work for me!

Thanks again!
--
Sandy


Show quoteHide quote
"Ken Halter" wrote:

> "Sandy" <Sa***@discussions.microsoft.com> wrote in message
> news:674C3C56-936A-4343-A152-4BCD57CCB0D7@microsoft.com...
> > Hello -
> >
> > I am confused as to how VB 6 saves projects.  I would like to be able to
> > make a folder for each day, say, 032306, copy the project I'm working on
> > and
> > put it in there.  I realize if you do this, you have to do a "Save As" or
> > it
> > just makes a reference to the form residing in another folder and any
> > changes
> > you might make on 3/23/06 would be reflected in all prior copies of the
> > form.
> > Does that mean I have to actually rename the form each time, or is it
> > enough
> > to right click, pick "Save As" and put it in the new folder?
>
> If you're using SourceSafe, a lot of what you want is built in and you can
> get to any version of the form at any time (it's a pita sometimes but still
> possible)
>
> fwiw, my ComGuard add-in has 'Project Snapshot' functionality that will
> create a copy of the entire project using an "auto generated" name. For
> example, if your project is called Project1, you click on 'Project Snapshot'
> and a few seconds (at most) later, you'll have a folder called "Project1
> 2006.03.23-07.14.45" (obviously time stamped <g>) that contains the entire
> project along with the latest version of your binary (exe/dll/ocx/whatever).
> The add-in can optionally do this automatically each time you compile so
> you'll have a copy of the source that was used to build the binary.
>
> > Also, why is it that if I look at the files in Explorer, some of the forms
> > have another form with an .frx extension too?  Why some and not others?
> > What's the purpose of the file?
>
> There are several reasons VB creates these files. Basically, they have the
> same extension as the designer with the last character replaced by an "X"
> (frx for frm files, ctx for ctl files, etc). They hold any graphics you load
> at design time, any multi-line text you enter into a property window or
> anything else that won't fit on a single line or can't be stored as plain
> text.
>
> > What is the purpose of the .vbw file?
>
> That keeps track of your window positions and a few other details about your
> working environment that were in effect the last time you worked on that
> project. Some people like the way that works but it can really slow down the
> process of opening large projects so quite a few people delete it or clear
> its contents and set it to Read-Only (ComGuard does that too)
>
> > Any attempts to clear up my fuzzy mind on these issues will be greatly
> > appreciated!  I've been working with other programs of late and apparently
> > have forgotten Visual Basic 6 basics . . .
>
> Welcome back from the dark side <g>
>
> > --
> > Sandy
>
> --
> Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
>
>
>
Author
23 Mar 2006 11:26 PM
Ken Halter
"Sandy" <Sa***@discussions.microsoft.com> wrote in message
news:873C0A09-D197-4650-9423-1E5797965201@microsoft.com...
> Thanks so much for your reply, Ken!!  Indeed my mind is beginning to feel
> less fuzzy . . .

Well... getting later in the day now so the fuzz is starting to build here
<g>

> I downloaded the trial copy of ComGuard, but haven't had much time today
> to
> take it for a spin.  I'll probably have time tomorrow.  It sounds like it
> would work for me!

That's great! fwiw, there's no disabled functionality in the trial version.
Just a little nagging <g>

Show quoteHide quote
> Thanks again!
> --
> Sandy

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Author
26 Mar 2006 10:48 PM
Sandy
Hi Ken -

I have used the trial copy a couple of days now and looking at the code on
the snapshot versions, it appears to be doing exactly what I need it to do --
save the code as it was at that time.

My reason for wanting this feature is to be able to go get the last copy in
case I mess up a form big time.  I notice there are little locks on all of
the forms.  If I were to import a form with a little lock on it, what do I
have to do to get the lock off and are there any other things I should take
into account?

Also, would you happen to know why sometimes files don't show up in Windows
Explorer, but show up in the project explorer files?
--
Sandy


Show quoteHide quote
"Ken Halter" wrote:

> "Sandy" <Sa***@discussions.microsoft.com> wrote in message
> news:873C0A09-D197-4650-9423-1E5797965201@microsoft.com...
> > Thanks so much for your reply, Ken!!  Indeed my mind is beginning to feel
> > less fuzzy . . .
>
> Well... getting later in the day now so the fuzz is starting to build here
> <g>
>
> > I downloaded the trial copy of ComGuard, but haven't had much time today
> > to
> > take it for a spin.  I'll probably have time tomorrow.  It sounds like it
> > would work for me!
>
> That's great! fwiw, there's no disabled functionality in the trial version.
> Just a little nagging <g>
>
> > Thanks again!
> > --
> > Sandy
>
> --
> Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
>
>
> .
>
Author
27 Mar 2006 5:45 PM
Ken Halter
Show quote Hide quote
"Sandy" <Sa***@discussions.microsoft.com> wrote in message
news:D4D80625-F0B7-4039-9B62-0B25CB5DEC8F@microsoft.com...
> Hi Ken -
>
> I have used the trial copy a couple of days now and looking at the code on
> the snapshot versions, it appears to be doing exactly what I need it to
> do --
> save the code as it was at that time.
>
> My reason for wanting this feature is to be able to go get the last copy
> in
> case I mess up a form big time.  I notice there are little locks on all of
> the forms.  If I were to import a form with a little lock on it, what do I
> have to do to get the lock off and are there any other things I should
> take
> into account?

Before opening the project, clear the read-only attribute. In Windows
Explorer, select all files that are part of the project, right-click, select
Properties and clear the box marked 'Read-Only'

> Also, would you happen to know why sometimes files don't show up in
> Windows
> Explorer, but show up in the project explorer files?
> --
> Sandy

Windows Explorer is most likely hiding them from you. If you open Explorer,
click Tools/Folder Options and click the 'View' tab, select the radio button
that says 'Show hidden files and folders' and, optionally clear the boxes
marked 'Hide extensions for known file types' and 'Hide protected operating
system files'. Then, click Apply followed by Apply to All Folders. There
should be nothing hidden with these settings in effect. OT, imo the 'Hide
extensions' setting is the root cause of quite a few virus attacks and
should never be in effect.


--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm