CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2000
    Posts
    26

    Changing the Title of an App

    How can I change the title of my app while it's running? I want it to say various things depending on where the user is in the app. Any thoughts?

    Thanks.

    Bryan


  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Changing the Title of an App

    I assume you want to change the text in the system tray, because the app.exename is a read only property. You can Change the Form Caption and if the form is marked as showintaskbar then that can show your changing text, but you cannot change the name of the application at runtime. There is a function on CodeGuru that will show you how to create a taskbar item if you have to have this functionality.



  3. #3
    Join Date
    Dec 2000
    Posts
    26

    Re: Changing the Title of an App

    That's what I want to do. I'll check there....Thanks

    Bryan


  4. #4
    Join Date
    Dec 2000
    Posts
    26

    Re: Changing the Title of an App

    Would you happen to know where that example is on Code Guru? I can't seem to find it. Thanks again.

    Bryan


  5. #5
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Changing the Title of an App

    try this link, by the way CodeHound is the best source for those hard to find items.
    http://www.codehound.com/vb/results/...?Q=system+tray


  6. #6
    Join Date
    Dec 2000
    Posts
    26

    Re: Changing the Title of an App

    I'm sorry for all this, but I still don't see anything. I understand what you are talking about, but I'm looking to change the Form Title in the Task Bar not the SysTray, and I don't see an article for anything about that. Again I'm really sorry to bother you and I really appreciate your help.

    Bryan


  7. #7
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Changing the Title of an App

    sorry, i misunderstood try this create a new project and add a command button. paste this code in. This will change you menu on the start bar


    Private Sub Command1_Click()
    Me.Caption = "MyTest"

    End Sub



  8. #8
    Join Date
    Dec 2000
    Posts
    26

    Re: Changing the Title of an App

    Thank You.

    Bryan


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