473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Hide Window from Task List - how?

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
4 4361
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
3
by: Rob Richardson | last post by:
Greetings! I have never understood how to make docking windows do what I want them to. I now have two instances of VB.Net running. In the main one, I have the main code window in the upper...
4
by: Never Best | last post by:
I have an application. I want it so when the user minimizs the window it goes into the system tray, and while in the system tray I don't want it in the "Alt-Tab" list. (When the program starts it...
2
by: Edson Tadeu | last post by:
When using an external tool to build (e.g NMAKE), the output window now prepends '1>' in each line. Also, the errors and warnings are not appearing on the task list anymore (as opposed to MSVC...
5
by: colin | last post by:
Hi, Ive got a 3d model editor wich im developing with XNA c# development environment, using the game window to display the wireframe mesh in 3d. however I need to use some other windows too,...
0
by: Fredo | last post by:
We have an application that has a completely custom UI. There are dozens of controls, panels, forms, etc, all written from scratch. We have a problem with our main app window. When the auto-hide...
1
by: nithingujjar | last post by:
Hi, I need to to hide a field"addr_state1" based on a value in the drop down list field called "addr_country".i.e.,if addr_country.value=="in" then hide addr_state1 else , and if the value in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.