By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,144 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,144 IT Pros & Developers. It's quick & easy.

Hide Window from Task List - how?

P: n/a
Does anyone know how I can hide a form from the TaskManager?

I've set the ShowInTaskbar to False, but when using Alt-TAB to switch
between applications, it appears as a blank icon. I can set it as a
SizableToolWindow, but then I no longer have the minimize button on the
caption.

Is there a way to mimic a (FormBorder) sizable tool window (so it doesn't
appear in the tasklist) and still show the Min, Max and Close control
buttons? (Or perhapes sub-class a minimize button to the caption when using
FormBorder =
SizableToolWindow?
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Blaine,

Usually if I'm doing something like you want to do,

I set the ShowInTaskBar to False, ShowIcon in False, and
FormBorderStyle to False.
I'm pretty sure you then only see your application running in
Processes, and not Applications, in the Task Manager.

I know that might not be what you want, but I hope it helps,

Visually Seen #

Nov 21 '05 #2

P: n/a
Thank you for the info.
Unfortunately, I need to have the Min, max, and close buttons on the screen.
I like using the Sizable Toolbar setting, but unfortunately the user won't
know how to min/max the window (the app is actually for Tablet PC and
right-clicking is not something people do very often with the pen). Thanks
for the info, though...

"al*****************@gmail.com" wrote:
Blaine,

Usually if I'm doing something like you want to do,

I set the ShowInTaskBar to False, ShowIcon in False, and
FormBorderStyle to False.
I'm pretty sure you then only see your application running in
Processes, and not Applications, in the Task Manager.

I know that might not be what you want, but I hope it helps,

Visually Seen #

Nov 21 '05 #3

P: n/a
What do you mean by 'get a blank icon in the Alt+Tab dialog'?

I think that you find that it is the icon for the executable. If you don't
like that then change it.

You also have to be careful when you minimise a window that has
ShowInTaskBar = False. When you minimise it, it becomes an 'iconised' window
in the workarea of the desktop. This is also true if you set the MinimizeBox
and MaximizeBox properties to false.

If you were able to achieve what you wnat to achieve then how would they
ever manage to retore the app once it had been minimised?

I wonder what your reasons for wanting to hide the app from the Applications
List actually is and whether you really need to do it?

"Blaine" <Bl****@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
Thank you for the info.
Unfortunately, I need to have the Min, max, and close buttons on the
screen.
I like using the Sizable Toolbar setting, but unfortunately the user won't
know how to min/max the window (the app is actually for Tablet PC and
right-clicking is not something people do very often with the pen). Thanks
for the info, though...

"al*****************@gmail.com" wrote:
Blaine,

Usually if I'm doing something like you want to do,

I set the ShowInTaskBar to False, ShowIcon in False, and
FormBorderStyle to False.
I'm pretty sure you then only see your application running in
Processes, and not Applications, in the Task Manager.

I know that might not be what you want, but I hope it helps,

Visually Seen #

Nov 21 '05 #4

P: n/a
I wonder what your reasons for wanting to hide the app from the Applications
List actually is and whether you really need to do it?

- No no virus program or anything like that. Let me explain and perhaps you
might be able to offer a solution. Three windows (forms) (well two actually).
FormA is the Main (parent - for lack of better term) that launches FormB.
FormB cannot be simply module (dialog) because it has to be cabable of
minimizing (and there are a number of other issues related to thirdparty
controls that have some bugs in them). It has to be in its own window, too
(so SetParent API is no good).

But the condition must be that you cannot access frmA when frmB is opened.
Think of it like MS Outlook with the main windows and an Email in a separate
window. When you minimize frmB, frmA should be minimized, too. When frmA and
frmB are shown (or when only FormA is shown), there should only be one
'processes' in the taskbar. To do this, I've created another form (let's call
it frmMain). It has its ShowInTaskbar set to true. frmA and frmB are set to
false. So basically frmMain will launch frmA (frmMain is off the screen so
the user can't see it, but it appears in the taskbar). When needed, frmA will
launch frmB (do you stuff in frmB and close it to go back to frmA). frmMain
has code in its resize even to handle set focus to the windowstate of the
user-shown form (A or B), minimizing, maximizing, etc. The AddOwnedForm
function did not work very well for this either, so it all had to be coded
seperately (for more control of min/max). To complicate it even more, some
users want to have a Systemtray icon (notify icon), again with similar
funcitonality as Outlook (hide when minimized, bring to front when opened,
etc.). And of course the option to show or hide the notify icon. This I've
put into the frmMain. Most things work, except for the following...

Unless frmA and frmB are set as Toolbars, they appear as separate icons in
the tasklist. If you set the Hide in Taskmanager, they still appear in the
Tasklist, but with out their properly associated icon. Regardless, I need to
have only one item in the Tasklist and in the Taskbar (that would be the
frmMain). When the Notify icon is present along with the Hide When Minimize
option, I can hide the frmMain (so only the one in the Taskbar appears), but
once again, I get the blank icon in the task list.

So with everything said....

What the heck is the best way to do this!?! I've been experimenting with
different ideas, but nothing 100% perfect has come up yet.

Basically, two forms (frmA, frmB) frmA is the parent. frmB can be min/max,
moved, but always stay sinfron of the dissabled frmA. When frm B is
minimized, frmA is minimized. When frmB is resized and max, frmA stays the
same. If the icon is in the systemtry and frmA or frmB are minimized, they
both dissappear and the associated 'button' in the taskbar dissappears as
well (like outlook). If frmA is resized and then frmB is opened, it still
maintains its size from before (not resized because frmA was resized).

So any thoughts an ideas would be greatly appreciated.
I'd like to get this program tested by qualitylogic so it can be added to
the Microsoft site, but I know it won't pass because of the icon issue in the
tasklist.
"Stephany Young" wrote:
What do you mean by 'get a blank icon in the Alt+Tab dialog'?

I think that you find that it is the icon for the executable. If you don't
like that then change it.

You also have to be careful when you minimise a window that has
ShowInTaskBar = False. When you minimise it, it becomes an 'iconised' window
in the workarea of the desktop. This is also true if you set the MinimizeBox
and MaximizeBox properties to false.

If you were able to achieve what you wnat to achieve then how would they
ever manage to retore the app once it had been minimised?

I wonder what your reasons for wanting to hide the app from the Applications
List actually is and whether you really need to do it?

"Blaine" <Bl****@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
Thank you for the info.
Unfortunately, I need to have the Min, max, and close buttons on the
screen.
I like using the Sizable Toolbar setting, but unfortunately the user won't
know how to min/max the window (the app is actually for Tablet PC and
right-clicking is not something people do very often with the pen). Thanks
for the info, though...

"al*****************@gmail.com" wrote:
Blaine,

Usually if I'm doing something like you want to do,

I set the ShowInTaskBar to False, ShowIcon in False, and
FormBorderStyle to False.
I'm pretty sure you then only see your application running in
Processes, and not Applications, in the Task Manager.

I know that might not be what you want, but I hope it helps,

Visually Seen #


Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.