?
Solved

App remaining in Taskbar

Posted on 2003-02-24
4
Medium Priority
?
328 Views
Last Modified: 2010-04-04
Hello,
 
My problem is:
I am making a (DirectX)App in Delphi. For that, I want to set the
borderstyle of my mainform to 'bsNone'.
However, when I set it to bsNone, and I close my App,
the App is still in my taskbar (although the App is closed correctly,
it's just 1 strange block still remaining on the taskbar).
When I set borderstyle to bsSizeable or bsSingle, I have no problem.
 
How can I solve this? is this a Windows-bug? or a Delphi-bug?
 
 
 
Below are some solutions I've tried already but DIDN'T work (so please come with other solution(s)):
 
In Mainform-Destroy:
  MainForm.Visible := false;
 
In Mainform-Destroy;
  HideAppInTaskbar;
 
In Mainform-Destroy:
  MainForm.Borderstyle := bsSizeable;
 
// Don't show the application Taskbar-button in taskbar
procedure HideAppInTaskbar;
var ExStyleApp : Cardinal;
 
begin
  ExStyleApp := GetWindowLong(Application.Handle, GWL_EXSTYLE);
  ExStyleApp := ExStyleApp or WS_EX_TOOLWINDOW;
  SetWindowLong(Application.Handle, GWL_EXSTYLE, ExStyleApp);
end;
// -----------------------------------------------
 

Greetings,

Martin Jochems
0
Comment
Question by:wimbaaijens
[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
4 Comments
 
LVL 1

Expert Comment

by:User137
ID: 8007480
Try Application.Minimize

I asked this question here before, but my problem disappeared as mysteriously as it appeared... It's a windows bug (maybe 95-98).
0
 
LVL 1

Accepted Solution

by:
User137 earned 300 total points
ID: 8007793
0
 

Author Comment

by:wimbaaijens
ID: 8014833
It works!
Do you know it's a Windows or a Direct X bug?
0
 
LVL 1

Expert Comment

by:User137
ID: 8015047
Thanks for the points ;-)

According to what i've heard, its Windows bug, it happens without DirectX also i think.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

762 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