Link to home
Start Free TrialLog in
Avatar of biroadam
biroadam

asked on

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).
Avatar of JimBob091197
JimBob091197

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
ASKER CERTIFIED SOLUTION
Avatar of inter
inter
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry JimBob, I did not notice,
please reject this biroadam, JimBob is first...
bye, igor
Hi Igor, not a problem.  These things happen.

Cheers,
JB
Avatar of biroadam

ASKER

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

Adam
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

Igor,
Thank you again.

Regards,
Adam