Hi Everyone,
after a lot of digging around in MSDN and stumbling about I've managed to do what I wanted.
I was unaware of Applications Settings until I found them on the Designer IDE. I was able to set a variable string Company Name in the Settings and then when the user enters his company name into a text box on a form this replaces the string value in the Settings and it persists even after the application is closed.
I can then access this Settings variable and use it at will in the code. These are some snippets I used :-
<code>
On Customise Form
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim newGroupName As String
newGroupName = TextBox1.Text
ChangeGroupName(newGroupName)
My.Settings.Save()
End Sub
Public Sub ChangeGroupName(ByVal newGroupName As String)
My.Settings.GroupName = newGroupName
End Sub
End Class
On all other forms
Public Class FormXXX
Private Sub FormXXX_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Text = My.Settings.GroupName & " : Add New Members"
End Sub
End Class
</code>
This results in the Caption Text on top right of each Form showing the Company Name.
This works on VB2008 Express edition.
Thanks to QamGine for his reply. His suggestion will be useful to me for other things I've no doubdt. It's in my Snippet Library.
Happy New Year to All
Steve