I think this is a question that time after time appear here, but I looked over lots of questions, and didn't found the the right answer for me.
I have a parent form, with all "normal" attributes, and now I just created a child form, with "normal" attributes too. On my parent form, I have a ListView, when I click on some item at my ListView, I open the child form.
Now I need to keep this child form, on top of the main form, and when I minimize the child, the top gets minimized too, when I maximize the program, I see the child form only, until I close this form. So, the main form, with the ListView will be unavailable until I close the child form. If I select another item from my ListView, I open the child form again with the same behavior.
I don't know if this is hard to achieve, but I didn't found it over the google. Here is my simple demo code:
unit Unit1;
var
Form1: TForm1;
implementation
uses Desktop;
procedure TForm1.RemoteDesktop1Click(Sender: TObject);
var
DesktopForm: TForm2;
begin
DesktopForm:= TForm2.Create(Self);
DesktopForm.Show;
end;
And Desktop unit is just a VCL Form, without any code.