Solved

Programmatically set a form to "normal"

Posted on 2004-09-07
2
277 Views
Last Modified: 2010-04-05
I work with Delphi since year, but this stupid thing I can't do  :
I need to programmatically display a form.
I mean, simulate the click of the user on the small icon at the top right of the screen that put the form back to normal (between minimize and  close) size...
0
Comment
Question by:LeTay
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
LRHGuy earned 250 total points
ID: 11996952
Try:

Form.WindowState:=wsNormal;
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 11996982
That is, replace "form" with the form variable, or if it's on a button, like:


procedure Form1.Button1Click(Sender:tobject);
begin
  WindowState:=wsNormal;
end;

You can also set:  wsMinimized  and  wsMaximized
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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.

706 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

19 Experts available now in Live!

Get 1:1 Help Now