Mega Code Archive

 
Categories / Delphi / Graphic
 

Get the current screen resolution

Title: get the current screen resolution? procedure TForm1.Button1Click(Sender: TObject); begin MessageDlg(Format('Screen Width = %d' + #13#10 + 'Screen Height = %d', [Screen.Width, Screen.Height]), mtInformation, [mbOK], 0); end;