visibility in two forms lazarus / 21-General ---------------------------------------------------------------------- moessner · 2022-04-20 11:34 Hello everyone, i am trying to use 2 forms. The main   f_cla   which contains a listbox and a modalform   f_ins_cla   that allows you to insert a new item with listbox.Items.add ('aaa') In the main form I have inserted, after implementation, the use of the unit relating to the modal form. When I try to insert the new item from the modal form it tells me: Error indentifier not found related to the main form. I guess being in the modal form I don't know it. How can I fix this? Thanks for the help from now on moessner - Mario Piva ---------------------------------------------------------------------- Zvoni · 2022-04-20 12:30 I have a suspicion, that this is a classic "Child updates the Parent". Don't.... As for your question: How do you "create" the modal Form? ---------------------------------------------------------------------- moessner · 2022-04-20 12:38 I think that you have understood, From the main form I have show the modal form with showmodal. Thank you for your reply moessner - mario piva ---------------------------------------------------------------------- Zvoni · 2022-04-20 12:42 Quote from: moessner on April 20, 2022, 02:38:54 pmI think that you have understood, From the main form I have show the modal form with showmodal. Thank you for your reply moessner - mario piva That wasn't my question. I need to see the code how you create the ModalForm ---------------------------------------------------------------------- howardpc · 2022-04-20 12:58 Here's a little working example ---------------------------------------------------------------------- Zvoni · 2022-04-20 13:00 My example ---------------------------------------------------------------------- moessner · 2022-04-20 17:14 I wish to thanks . I solved. moessner -  mario piva