Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to bring my form to top ...

Posted on 2001-09-17
4
Medium Priority
?
141 Views
Last Modified: 2010-04-06
Hi Experts,

I have an application that is always minimized. It does some checks, and when the results of those checks are negative, then my app should come in front of all the other applications that are active that moment, in order to be able to inform the user that the checks were bad.

How can this be done ?
I suppose this should be possible (and even simple to do), but I'm not able to do the trick.

Any suggestions ?
Thanx,
The Mayor.

0
Comment
Question by:wimmeyvaert
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 200 total points
ID: 6487220
try
  Application.Restore;
0
 
LVL 1

Expert Comment

by:Madmarlin
ID: 6487226
Not sure off the top pf my head and dont have a delphi program in fromnt of my but I'd check the application object.

It will be something like :

Application.Restore;
Application.BringToFront;
0
 
LVL 6

Author Comment

by:wimmeyvaert
ID: 6487257
Hi mnasman, MadMarlin,

Your suggestion works fine, but only if my mainform is minimized. How can I get the same result when my MainForm
is not minimized, but behind another application.

This is my code (only works when form is minimized) :
  if not blnGlobalResultOK then
  begin
    Application.Restore;
    Self.Show;
  end;

Can you please help me any further with this one.
I'll grant the points anyway to mnasman, because he was the first to give me a correct answer to my question.
I hope he wants to help me a bit more to solve my other little question here.

Best regards,
The Mayor.
0
 
LVL 6

Author Comment

by:wimmeyvaert
ID: 6487274
Hi there,

I just tried MadMarlins suggestion, and this seems to solve my complete problem !!

That doesn't make it easy for me to grant the points, you know.
Because both of you gave me an correct solution (and because I'm in a very good mood today ;-)), I'll give you both 50 points.

So I'm gonna grant the points for this question to mnasman (He was first after all).
In a minute I'll post a new question for MadMarlin (50 points) and if he comments it, I'll grant him the points too.

Anyway, thanx for your quick responses.
The Mayor
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

824 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