Now when you add a PageControl into the form and add the same TEdit in the PageControl, the thing changes.
you should write as below:
void Show()
{
Form1->PageControl->show_text -> Text = "the text i want";
}
because show_text's parent changes to PageControl
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.