|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FRM filesHI 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
Show quote
Hide quote
"mark blackall" <black***@btinternet.com> wrote in message Your app will need to parse these and take action on their contents. iow, 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 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..
Show quote
Hide quote
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in Another option is to create a script-like language, in an ini file, 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. > 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
insert char in txtbox on key up?
?creating activex control? Ping Ken Halter Font Dialog Box kill a proccess for a specific user VBA and ADODB.Recordset question Newbie: ADO - Access Connection string Software protection against cracks and piracy Resizing text boxes Sharing violation when trying to delete a file. |
|||||||||||||||||||||||