I want to set the focus on the edit box again after displaying message.
portno := Edit.Text;
if (portno = '') then
begin
MsgBox('Enter Port Number to proceed.', mbInformation, MB_OK);
Result := False;
end
I want to set the focus on the edit box again after displaying message.
portno := Edit.Text;
if (portno = '') then
begin
MsgBox('Enter Port Number to proceed.', mbInformation, MB_OK);
Result := False;
end
Set TForm.ActiveControl
of the WizardForm
:
WizardForm.ActiveControl := Edit;
This answer shows this in action:
Port range validation for data input in Inno Setup