Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hiding laskbar button

Posted on 1998-09-15
8
Medium Priority
?
137 Views
Last Modified: 2010-04-06
How can I hide/remove my application’s button from the tasbar (without hiding the application’s windows, of course)? (My application has an icon in the Notification Area, and it’s enough, I don’t need a button).
0
Comment
Question by:biroadam
  • 3
  • 3
  • 2
8 Comments
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1339747
Have you tried "ShowWindow(Application.Handle, SW_HIDE);"?
(If you add this to your project file you might need to add Windows to your uses clause.)

JB
0
 
LVL 5

Accepted Solution

by:
inter earned 200 total points
ID: 1339748
Hi
Simply use the following to hide it
showwindow(Application.Handle,sw_hide)
and to show it again
showwindow(Application.Handle,sw_restore);
Regards, Igor
0
 
LVL 5

Expert Comment

by:inter
ID: 1339749
Sorry JimBob, I did not notice,
please reject this biroadam, JimBob is first...
bye, igor
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:JimBob091197
ID: 1339750
Hi Igor, not a problem.  These things happen.

Cheers,
JB
0
 

Author Comment

by:biroadam
ID: 1339751
inter,
Thank you, it was really simple.

ps. Don’t you know how can I display buttons on the taskbar for windows which were created dinamically by my application? For example, if my application will create N windows, on the taskbar must appear N buttons (the application’s main form must NOT have a button on the taskbar).
0
 

Author Comment

by:biroadam
ID: 1339752
Sorry, JimBob, inter,
I didn’t realize that I should reject this answer (anyway, I don’t no if I really should).

Adam
0
 
LVL 5

Expert Comment

by:inter
ID: 1339753
Hi,-thanks-
do it as follows(multi button on task bar) for each form(preferably in oncreate or on a prober way before showing)

  SetWindowLong(Form1.Handle, GWL_EXSTYLE, WS_EX_APPWINDOW);

regards, igor

0
 

Author Comment

by:biroadam
ID: 1339754
Igor,
Thank you again.

Regards,
Adam
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question