Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hiding laskbar button

Posted on 1998-09-15
8
Medium Priority
?
136 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

730 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