CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    226

    Question Setting The Form Title

    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?

  2. #2
    Join Date
    Jul 2002
    Location
    EU
    Posts
    68
    Use the Text property if you want to get/set the string that is displayed in the caption (title) of the form.

    Petru

  3. #3
    Join Date
    Feb 2003
    Location
    Oklahoma City, OK
    Posts
    63
    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,
    Last edited by phirestalker; March 20th, 2003 at 09:14 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured