Hiding laskbar button

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).
biroadamAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
interConnect With a Mentor Commented:
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
 
JimBob091197Commented:
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
 
interCommented:
Sorry JimBob, I did not notice,
please reject this biroadam, JimBob is first...
bye, igor
0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
JimBob091197Commented:
Hi Igor, not a problem.  These things happen.

Cheers,
JB
0
 
biroadamAuthor Commented:
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
 
biroadamAuthor Commented:
Sorry, JimBob, inter,
I didn’t realize that I should reject this answer (anyway, I don’t no if I really should).

Adam
0
 
interCommented:
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
 
biroadamAuthor Commented:
Igor,
Thank you again.

Regards,
Adam
0
All Courses

From novice to tech pro — start learning today.