DellaSavia Posted September 24, 2018 Share Posted September 24, 2018 Hi ! The Form2 was called by Form1: Form2.Show; I tried this in the Form2: if Form1.Showing then Form1.FDQuery1.Refresh; even that the Form1 still on the screen, the instruction 'Refresh' never is performed. Why ? Thanks Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted September 25, 2018 Share Posted September 25, 2018 If you create form as "Application Form" in wizard, you can use this if UniMainModule.GetFormInstance(TUniForm1, False)<>nil then begin // Form is already created end; Quote Link to comment Share on other sites More sharing options...
Tokay Posted September 25, 2018 Share Posted September 25, 2018 You can try: UniMainModule.GetFormInstance(TForm2, False) <> nil Quote Link to comment Share on other sites More sharing options...
DellaSavia Posted September 25, 2018 Author Share Posted September 25, 2018 Perfect ! It worked very well ! Thanks all ! Quote Link to comment Share on other sites More sharing options...
fraxzi Posted July 19, 2023 Share Posted July 19, 2023 Hi, I tried it with TUniFrame but it didn't worked.. @Sherzod, could you please help. I want to determine if certain Frame is open so I can locate an object/component using "FindComponent" Thanks in advance. Frances Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted July 22, 2023 Share Posted July 22, 2023 Hey excellent but with a frame can be check,if is in use like a form. I have an application that use Frame in the main instead form, so will be interesting to make the same thing Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.