Hrm.
Look at the VB.OLE.SaveToFile and .ReadFromFile. Apparently it can save
objects as they currently are. Not sure if forms or designers fall under
this category, but if they do you might be in luck.
- Chuck
----- Original Message -----
From: "sharad" <sharad_nair@u...>
To: "professional vb" <pro_vb@p...>
Sent: Thursday, April 12, 2001 7:24 PM
Subject: [pro_vb] Re: [Re: [RE: Property Bag]]
> ya tim,
> something of that sort..
> a form allowing the end user to customize the layout according to their
> preference..i may be able to get the records based on that from the
> databse..but my problem occurs to display the exact layout back to the
user
> the next time they open the form..something like vb does for us..in the
IDE..
> any ideas to share??/
> cheers
> sharad
>
>
> Tim Mccurdy <tmccurdy@c...> wrote:
> Hmm, actually, this may be very complicated. Are u designing a "Designer"
> for a developer to use or something an End User to use to customize like
an
> Ad-Hoc reporter?
>
> -----Original Message-----
> From: sharad [mailto:sharad_nair@u...]
> Sent: Wednesday, April 11, 2001 8:31 PM
> To: professional vb
> Subject: [pro_vb] Re: [RE: Property Bag]
>
>
> hi tim,
> ur explanation of property bag was worth appreciation...i wonder if u
could
> help in process of designing a report designer..what i actually intend to
do
> is to build a report writer using VB..wherein i'll be having all my
controls
> as activeX controls..just like the toolbar..the user will need to drag and
> drop and design the report layout they desire..it seemed to be easy even
for
> me at first thought..but my problem occurs in getting back the layout the
> next
> time user loads that form...where do i store that design layout...which
> format...
> I am sure u might have a thought to pass...
> thankz
> sharad nair
> PBS
> Ireland
>
>
> Tim Mccurdy <tmccurdy@c...> wrote:
> A Property Bag is a very powerful Object. It is used within ActiveX
> Controls to store what the Developer has set each Public property to and
> persist that information to the Property Bag in order to retrieve it at
> runtime (how else do you think a CommandButton knows to be Disabled when
> that property is set at design time?).
>
> Also, a Property Bag can be used to Persist Data from an ActiveX DLL
> (meaning persist all the Objects within the Collection of Objects to a
> Binary File) and retrieve them for use later on. This is very helpful if
> you are creating a program that can use Templates and save those Templates
> to Files for retrieval later on.
>
> If you need a very good example, put a CommandButton on a Form, set some
> properties, then Close the Form. Go into the Directory where you saved
the
> Form and open it with WordPad. You can look through all the Code in the
> Form and see every PropertyBag and every Properties settings within it.
>
> Read Deborah Kurata's book "Doing Objects in Visual Basic 6" which will
> explain everything. This is a great book!
>
> -----Original Message-----
> From: krunch97@m... [mailto:krunch97@m...]
> Sent: Wednesday, April 11, 2001 8:56 AM
> To: professional vb
> Subject: [pro_vb] Property Bag
>
>
> When you talk about property bag, what do you mean. I heard of property
> bag but no one I know knows really what it is meant by. Please give a
> general description and a simple example.
>
> Thanks for your help in advance,
>
> Fredrick J. Krantz
>