refreshing the title of a form from another form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a form called MyForm, say, and I wish the title (i.e. the text
property) of this form to be updated from another form when say the current
business changes.
Since the form isn't changed do you know any way of doing this.

Regards

Robert
 
Hi Robert,

You need to have a reference to the form in which you want to change the
Text property. Let's say you did this earlier in the project with code
such as

Dim f1 as new MyForm
f1.Show

You can then change the Text property of "MyForm" by referring to the
variable you are using to refer to it.
Code would be:

f1.Text = "New Business"

Ged
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top