Solved

Hiding laskbar button

Posted on 1998-09-15
8
131 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 50 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax Check Delphi Seattle IOS app without MAC ? 1 104
DBCtrlGrid, Delphi, Scroll 7 26
firemonkey Android Listview Sort items 7 49
Firemonkey BASS_Init into a thread 17 30
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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