Home All Groups Group Topic Archive Search About
Author
14 Oct 2005 3:12 PM
mark blackall
HI All,

I am wanting to create an EXE, that, when it runs, it loads in a .FRM file
containing the setup of all the controls on the forms (the actual program
code being already in the EXE). IN other words, it loads in the FRM file
that normally is part of the uncompiled application, but with the VB code
itself stripped out.

The idea is that I have a program that I can send to users, but they can
change the position of labels etc, by altering the FRM file, but not the
program code itself.

Hope this makes sense.

Regards

Mark

Author
14 Oct 2005 3:21 PM
Ken Halter
Show quote Hide quote
"mark blackall" <black***@btinternet.com> wrote in message
news:dioi05$s1s$1$8302bc10@news.demon.co.uk...
> HI All,
>
> I am wanting to create an EXE, that, when it runs, it loads in a .FRM file
> containing the setup of all the controls on the forms (the actual program
> code being already in the EXE). IN other words, it loads in the FRM file
> that normally is part of the uncompiled application, but with the VB code
> itself stripped out.
>
> The idea is that I have a program that I can send to users, but they can
> change the position of labels etc, by altering the FRM file, but not the
> program code itself.
>
> Hope this makes sense.
>
> Regards
>
> Mark

Your app will need to parse these and take action on their contents. iow,
there's surely nothing built in that would allow this.... and they wouldn't
be able to add/remove controls. If you allow it, they'll be able to set them
Visible/Not Visible but won't be able to change their names, add or remove
them.

It may be easier to add code that allows users to move controls at runtime
and store their final positions in an ini file.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Author
14 Oct 2005 10:26 PM
DanS
Show quote Hide quote
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in
news:eNnZyLN0FHA.2008@TK2MSFTNGP10.phx.gbl:

> "mark blackall" <black***@btinternet.com> wrote in message
> news:dioi05$s1s$1$8302bc10@news.demon.co.uk...
>> HI All,
>>
>> I am wanting to create an EXE, that, when it runs, it loads in a .FRM
>> file containing the setup of all the controls on the forms (the
>> actual program code being already in the EXE). IN other words, it
>> loads in the FRM file that normally is part of the uncompiled
>> application, but with the VB code itself stripped out.
>>
>> The idea is that I have a program that I can send to users, but they
>> can change the position of labels etc, by altering the FRM file, but
>> not the program code itself.
>>
>> Hope this makes sense.
>>
>> Regards
>>
>> Mark
>
> Your app will need to parse these and take action on their contents.
> iow, there's surely nothing built in that would allow this.... and
> they wouldn't be able to add/remove controls. If you allow it, they'll
> be able to set them Visible/Not Visible but won't be able to change
> their names, add or remove them.
>
> It may be easier to add code that allows users to move controls at
> runtime and store their final positions in an ini file.
>

Another option is to create a script-like language, in an ini file, in
which the user can specify what control's and how many of each along with
their positions and what each relates to.

IMO, this would be somewhat difficult, and time consuming, since it would
need to be VERY structured. In order to make the code independant on the
count of each control.

But, I think it could be done. Is it worth it ?

Regards,

DanS