Hmmmm...<br>
<br>
If you'd like the button caption to retain changes - perhaps you could have a look at GetSetting and SaveSetting<br>
<br>
You could say:<br>
<br>
Command1.text = GetSetting("MyApp","Button Text", "Command1", "Default Value")<br>
<br>
Mike<br>
<br>
Details Below.<br>
<br>
(From VB Help)<br>
GetSetting<br>
==========<br>
Returns a key setting value from an application's entry in the Windows registry.<br>
<br>
Syntax <br>
<br>
GetSetting(appname, section, key[, default])<br>
<br>
The GetSetting function syntax has these named arguments:<br>
<br>
Part Description<br>
appname Required. String expression containing the name of the application or project whose key setting is requested.<br>
section Required. String expression containing the name of the section where the key setting is found.<br>
key Required. String expression containing the name of the key setting to return.<br>
default Optional. Expression containing the value to return if no value is set in the key setting. If omitted, default is assumed to be a zero-length string ("").<br>
Remarks<br>
<br>
If any of the items named in the GetSetting arguments do not exist, GetSetting returns the value of default.<br>
<br>
SaveSetting<br>
===========<br>
Saves or creates an application entry in the Windows registry.<br>
<br>
Syntax <br>
<br>
SaveSetting appname, section, key, setting<br>
<br>
The SaveSetting statement syntax has these named arguments:<br>
<br>
Part Description<br>
appname Required. String expression containing the name of the application or project to which the setting applies.<br>
section Required. String expression containing the name of the section where the key setting is being saved.<br>
key Required. String expression containing the name of the key setting being saved.<br>
setting Required. Expression containing the value that key is being set to.<br>
Remarks<br>
<br>
An error occurs if the key setting can’t be saved for any reason.<br>