Well, actually, if you compare both methods looking at the CPU window, you will notice that using Panel.Site.FloatingForm.ActiveControl will actually generate one extra operation comparing to using TLMDFloatingForm(Panel1.Parent.Parent).ActiveControl, so although your suggestion might be a bit more elegant, I'll stick with my first option. Thanks anyway
Comments
Panel.Site.FloatingForm.ActiveControl will actually generate one extra operation comparing to using
TLMDFloatingForm(Panel1.Parent.Parent).ActiveControl, so although your suggestion might be a bit more elegant, I'll stick with my first option.
Thanks anyway