• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

Programmatically set a form to "normal"

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
LeTay
Asked:
LeTay
  • 2
1 Solution
 
LRHGuyCommented:
Try:

Form.WindowState:=wsNormal;
0
 
LRHGuyCommented:
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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now