Reputation: 2816
I have a MDI Application with one MDI child.
When a user changes a Textbox on the MDI child, the MDI child (= document) is changed and is not saved. I want this to be visible in the Titlebar of the Application, like this:
ApplicationName [DocumentName*]
When the users saves the Document and doesn't change anything after, it should display:
ApplicationName [DocumentName]
How can I achieve this?
Upvotes: 0
Views: 637
Reputation: 137148
You need a "document modified" flag. Then in your code that pulls out the document name to display in the title you can check this and if the document has been modified append "*".
Upvotes: 2