
05-21-2001, 01:25 PM
|
|
Original Contributor
Retired Moderator * Guru *
|
|
Join Date: Jan 2001
Location: Watch Window
Posts: 2,781
|
|
Re: forms with names
|
If you are trying to have the text in a text box become the title of the window everytime the program runs then I would use the registry to store that data for me.
<pre>Private Sub Form_Load()
Me.Caption = GetSetting("App_Name", "Startup", "Caption", "Default_Name")
End Sub
Private Sub Form_Unload(Cancel As Integer)
SaveSetting "App_Name", "Startup", "Caption", Text1.Text
End Sub</pre>
JDT
|
__________________
JDT
|