SPECIAL OFFER        Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!

⤷ Set resolution of screen

Use ChangeDispleySettings function with TDeviceModeA structure for this problem.

procedure TForm1.Button1Click(Sender: TObject);
var
  MyMode: TDeviceModeA;
begin
  MyMode.dmSize:=Sizeof(MyMode);
  MyMode.dmFields:=DM_PELSWIDTH	and DM_PELSWIDTH;
  MyMode.dmPelsWidth:=StrToInt(Edit1.Text);
  MyMode.dmPelsHeight:=StrToInt(Edit2.Text);
  ChangeDisplaySettings(MyMode, 0);
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes