-
May 19th, 2018, 10:25 AM
#1
[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
-
May 19th, 2018, 10:36 AM
#2
Re: Unexplained Quirk
Have you checked the show in taskbar property of each form?
-
May 19th, 2018, 12:01 PM
#3
Re: Unexplained Quirk
Originally Posted by DataMiser
Have you checked the show in taskbar property of each form?
Both set to True.
J.A. Coutts
-
May 20th, 2018, 04:06 AM
#4
Re: Unexplained Quirk
Originally Posted by couttsj
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
-
May 20th, 2018, 08:54 AM
#5
Re: Unexplained Quirk
Originally Posted by wqweto
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
-
May 20th, 2018, 09:30 AM
#6
Re: Unexplained Quirk
Originally Posted by couttsj
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>
-
May 20th, 2018, 11:06 AM
#7
Re: Unexplained Quirk
Originally Posted by wqweto
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
-
May 20th, 2018, 11:10 AM
#8
Re: Unexplained Quirk
Originally Posted by couttsj
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|