Results 1 to 8 of 8

Thread: [RESOLVED] Unexplained Quirk

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,470

    Resolved [RESOLVED] Unexplained Quirk

    I have 2 applications (TextEditor & InkEditor) pinned to the Task bar in Win 8.1. When InkEditor is activated, it highlights the existing icon in the Task Bar like other applications. When TextEditor is activated, it creates a new icon in the Task Bar. These two programs are very similar, so I don't understand why they are treated differently.
    InkEditor:
    Code:
    Private Sub Form_Load()
        InIDE = CheckForIDE
        TxtAdj = Me.ScaleHeight - InkText1.Height
        GetPosition Me
        TmpPath = GetTmpPath
        GetFontInfo
        GetPrinterInfo
        ScaleMode = vbTwips
    End Sub
    TextEditor:
    Code:
    Private Sub Form_Load()
        InIDE = CheckForIDE
        TxtAdj = Me.ScaleHeight - txtData1.Height
        GetPosition Me
        TmpPath = GetTmpPath
    End Sub
    J.A. Coutts

  2. #2
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: Unexplained Quirk

    Have you checked the show in taskbar property of each form?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,470

    Re: Unexplained Quirk

    Quote Originally Posted by DataMiser View Post
    Have you checked the show in taskbar property of each form?
    Both set to True.

    J.A. Coutts

  4. #4
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,121

    Re: Unexplained Quirk

    Quote Originally Posted by couttsj View Post
    When TextEditor is activated, it creates a new icon in the Task Bar.
    Unpin TextEditor from task bar. Start a freshly compiled version of TextEditor and then pin it's icon to the task bar.

    Task bar icons are keyed on full pathnam of the executable, if the application is not using SetCurrentProcessExplicit*****erModelID explicitly.

    cheers,
    </wqw>
    p.s. The API function is SetCurrentProcessExplicitAppUserModelID. . . lol

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,470

    Re: Unexplained Quirk

    Quote Originally Posted by wqweto View Post
    Unpin TextEditor from task bar. Start a freshly compiled version of TextEditor and then pin it's icon to the task bar.

    Task bar icons are keyed on full pathnam of the executable, if the application is not using SetCurrentProcessExplicit*****erModelID explicitly.

    cheers,
    </wqw>
    p.s. The API function is SetCurrentProcessExplicitAppUserModelID. . . lol
    Simply unpinning it and re-pinning corrected the issue. Don't understand, but thanks for pointing me in the right direction.

    J.A. Coutts

  6. #6
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,121

    Re: Unexplained Quirk

    Quote Originally Posted by couttsj View Post
    Don't understand. . .
    If you now move TextEditor.exe to a new folder you'll get the task-bar behavior before "the fix" you figured out.

    Task-bar icons are keyed on the full-path name of the executable. Pinning C:\Temp\TextEditor.exe is a different task-icon than C:\Users\coutsj\Temp\TextEditor.exe for instance.

    cheers,
    </wqw>

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2012
    Posts
    1,470

    Re: Unexplained Quirk

    Quote Originally Posted by wqweto View Post
    If you now move TextEditor.exe to a new folder you'll get the task-bar behavior before "the fix" you figured out.

    Task-bar icons are keyed on the full-path name of the executable. Pinning C:\Temp\TextEditor.exe is a different task-icon than C:\Users\coutsj\Temp\TextEditor.exe for instance.

    cheers,
    </wqw>
    The location of the file has never changed. It was however upgraded by copying a newer version over top of the old version.

    J.A. Coutts

  8. #8
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,121

    Re: Unexplained Quirk

    Quote Originally Posted by couttsj View Post
    The location of the file has never changed.
    Full-path name includes location *and* filename and (probably) texteditor.exe is not the same as TextEditor.exe.

    cheers,
    </wqw>

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