behnam_tr Active Member Licensed User Longtime User Jan 11, 2020 #1 hello i want to check formshowing is true or false before show form how can i check that form is showing or hiding ?? form.showing method cant return any value before form.show run actually i want to prevent show if is show before thanks
hello i want to check formshowing is true or false before show form how can i check that form is showing or hiding ?? form.showing method cant return any value before form.show run actually i want to prevent show if is show before thanks
DonManfred Expert Licensed User Longtime User Jan 12, 2020 #2 form1.Visible? Away from that form1. Showing is giving the same answer!? B4X: Copy Log("Before show: Visible="&MainForm.Visible) ' False Log("Before show: Showing="&MainForm.Showing) ' False MainForm.Show Log("After show: Visible="&MainForm.Visible) ' True Log("After show: Showing="&MainForm.Showing) ' True Last edited: Jan 12, 2020 Upvote 0
form1.Visible? Away from that form1. Showing is giving the same answer!? B4X: Copy Log("Before show: Visible="&MainForm.Visible) ' False Log("Before show: Showing="&MainForm.Showing) ' False MainForm.Show Log("After show: Visible="&MainForm.Visible) ' True Log("After show: Showing="&MainForm.Showing) ' True
behnam_tr Active Member Licensed User Longtime User Jan 12, 2020 #3 when loging form2.showing from mainform i cant get any answer when form2 is hidden ,why ?? thank with form2.visible solved my problem and returned (true or false) Upvote 0
when loging form2.showing from mainform i cant get any answer when form2 is hidden ,why ?? thank with form2.visible solved my problem and returned (true or false)
behnam_tr Active Member Licensed User Longtime User Jan 15, 2020 #4 DonManfred said: form1.Visible? Away from that form1. Showing is giving the same answer!? B4X: Copy Log("Before show: Visible="&MainForm.Visible) ' False Log("Before show: Showing="&MainForm.Showing) ' False MainForm.Show Log("After show: Visible="&MainForm.Visible) ' True Log("After show: Showing="&MainForm.Showing) ' True Click to expand... how check like this for other forms before start them?? Log("Before start: Visible="&form2.form2frm.Visible) ' Error Log("Before start: Showing="&form2.form2frm.Visible) ' Error form2.start Log("After start: Visible="&form2.form2frm.Visible) ' True Log("After start: Showing="&form2.form2frm.Visible.Showing) ' True form2.form2frm.close Log("after close: Visible="&form2.form2frm.Visible) ' false Log("after close: Showing="&form2.form2frm.Visible) ' false i want to check before start form its possible ?? Upvote 0
DonManfred said: form1.Visible? Away from that form1. Showing is giving the same answer!? B4X: Copy Log("Before show: Visible="&MainForm.Visible) ' False Log("Before show: Showing="&MainForm.Showing) ' False MainForm.Show Log("After show: Visible="&MainForm.Visible) ' True Log("After show: Showing="&MainForm.Showing) ' True Click to expand... how check like this for other forms before start them?? Log("Before start: Visible="&form2.form2frm.Visible) ' Error Log("Before start: Showing="&form2.form2frm.Visible) ' Error form2.start Log("After start: Visible="&form2.form2frm.Visible) ' True Log("After start: Showing="&form2.form2frm.Visible.Showing) ' True form2.form2frm.close Log("after close: Visible="&form2.form2frm.Visible) ' false Log("after close: Showing="&form2.form2frm.Visible) ' false i want to check before start form its possible ??
DonManfred Expert Licensed User Longtime User Jan 15, 2020 #5 behnam_tr said: Log("Before start: Visible="&form2.form2frm.Visible) ' Error Click to expand... 1. Where is the FULL ERROR? 2. It is best you upload a small project showing your problem. Upvote 0
behnam_tr said: Log("Before start: Visible="&form2.form2frm.Visible) ' Error Click to expand... 1. Where is the FULL ERROR? 2. It is best you upload a small project showing your problem.
behnam_tr Active Member Licensed User Longtime User Jan 15, 2020 #6 uploaded project Attachments test.zip test.zip 2.3 KB · Views: 322 Upvote 0
DonManfred Expert Licensed User Longtime User Jan 15, 2020 #7 You need to initialize form2 from main See Example Attachments test.zip test.zip 2.3 KB · Views: 285 Upvote 0
DonManfred Expert Licensed User Longtime User Jan 15, 2020 #8 Another way Attachments test2.zip test2.zip 2.3 KB · Views: 298 Upvote 0