I have 2 forms, on one several buttons, and on the second Object PageControl with several tabs, the names of which coincide with the names of the buttons on the first form. How can I make it so that when I press the button on the first form, I switch to the second form and open exactly the tab that I need, and not the very first one?
I tried to do it this way, but it didn't work out.
procedure TForm1.BitBtn2Click(Sender: TObject); begin form1.hide; form3.TabSheet2.Show; end;