Solved

Hiding laskbar button

Posted on 1998-09-15
8
128 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
 
LVL 5

Expert Comment

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

Cheers,
JB
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now