Click to See Complete Forum and Search --> : Setting The Form Title


Scott MacMaster
March 20th, 2003, 03:09 AM
I'm working on a MDI application. When a new child form is created I'm trying to change to title to "Document 1". Later on I'll want to change it again when the user saves the document. To do this I'm setting the Name property to "Document 1" However, at some point after setting that property it get's reset to whatever I had enterred for it's value in the form editor.

Does someone know how to change the form title at execution?

petru66
March 20th, 2003, 04:54 AM
Use the Text property if you want to get/set the string that is displayed in the caption (title) of the form.

Petru

phirestalker
March 20th, 2003, 12:40 PM
well what I did is to make the title of the child form the name of the file at execution, leaving it blank in the form designer and when u maximize the child form it adds that name to the parent form title automatically, :)