Results 1 to 3 of 3

Thread: Changing Taskbar Icon names, Keeping titlebar name

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Wiliamsport, PA
    Posts
    9

    Question

    Ok, he's the problem. Loading forms up modally with ShowInTaskbar = false will kill the main form's icon in the taskbar. But using ShowInTaskbar = True will make the Tasbar Icon's name the current form oppened. Basically, what I want to do if possible is keep all captions as the form's caption, but for the taskbar icon, I want it to state the Application Name and then the current form that is oppened.

    IE:

    Form name: "Application Setup"
    App Name: "My Program"

    Taskbar name when "Application Setup" form is opened:

    "My Program (Application Setup)"

    Titlebar name when "Application Setup" form is opened:

    "Application Setup"


    I'm sure there is a way to do this, but I'm fairly new to VB, but learning quickly.

    I looked at SetWindowText, but I think that will change the caption of the titlebar (not what I want), I could use frmName.caption = <blah> if I wanted to do that. Any help would be appreciated.

    Benjamin Hannon
    Williamsport, PA

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    Lightbulb Hmmm

    I didn't really catch your question. Are you trying to USE a systray icon or just not showintaskbar BUT keep the icon? Or are you working with MDI forms?
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Wiliamsport, PA
    Posts
    9

    Question Well...

    Well,

    I want to keep the ICON in the ALT-TAB Taskbar, System Tray, Task Manger when I show a form modally (not an MDIChild, but me.show vbModal) and that form will keep it's caption name. However, In the ALT-TAB taskbar, System Tray, Task Manger, I want it to have the Application Name followed by the current open form's name:

    My Program (Application Settings)

    You cann't use vbModal with MDIChild forms...

    basically with ShowInTaskBar = false, it kills the main form's icon. With ShowInTaskBar = true, the new form's caption takes over in the taskbar...

    I hope this is more descriptive of the problem.

    Benjamin Hannon
    Williamsport, PA

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