Ricky D Well-Known Member Licensed User Longtime User Oct 22, 2008 #1 I have created a panel on a form. I'd like to be able to show this panel on other forms in other modules. Using Formlib I can change the parent but once I've done that I can no longer access the panel's controls in code. Any ideas? regards, Ricky
I have created a panel on a form. I'd like to be able to show this panel on other forms in other modules. Using Formlib I can change the parent but once I've done that I can no longer access the panel's controls in code. Any ideas? regards, Ricky
klaus Expert Licensed User Longtime User Oct 22, 2008 #2 I have tried it, it works. Look at the small program below, you just need to add the FormLib library. Could you post your code so we can look what happens. Best regards. Attachments PanelOnForms.sbp 1.1 KB · Views: 288
I have tried it, it works. Look at the small program below, you just need to add the FormLib library. Could you post your code so we can look what happens. Best regards.
Ricky D Well-Known Member Licensed User Longtime User Oct 23, 2008 #3 Thanks, I worked it out I thought that ChangeParent also moved the control onto the new form but I found all it's controls sitting happily where I created them. The panel shows fine on any form and I can do everything I want. regards, Ricky
Thanks, I worked it out I thought that ChangeParent also moved the control onto the new form but I found all it's controls sitting happily where I created them. The panel shows fine on any form and I can do everything I want. regards, Ricky