Solved

How to bring my form to top ...

Posted on 2001-09-17
4
131 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:
mnasman earned 50 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now