Changing Form name on Windows title bar

R

ReuvenT

Hi All,
Is there a way to programatically change the Form1 prefix in the Windows
title bar? I have an InforPath form (developed with visual studio VB) that a
user can open several instances of. It would be helpful to be able to change
the title bar within the vb app to help differentiate those instances. The
text used in the title would depend on user actions/input, i.e. a dynamic
change of the title would be best.

Many Thanks,
Reuven
 
S

ScottD[Interlink Group]

I don't think there is a way to do this through rules. If you are using
Managed Code do something like this:

this.thisApplication.ActiveWindow.Caption = title;

I am using logic in a form which updates the title of the document each time
the data for the title changes. That is, a text field on the form is to be
used in the title, update the title in the onChanged event for that field.
 
J

JB

I believe this is what I am looking for. How do I enter this code so when the
form is open the title bar on the taskbar shows the name of the form and not
say form1 form2 etc. Thanks for your time.
 

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

Top