Skip to Content
0
Former Member
Nov 06, 2014 at 10:44 AM

Open a form

968 Views

Hello Discussion Group,

I want to open a new form and I have a problem to get a reference on the new form. First I tried something like this:

Forms.OpenFormByKey("4", null); Form myForm = GetFormFromUID(Application.Forms.ActiveForm.UniqueID);

But sometimes another form is on top an I got the wrong form. In the internet are tips like:

oForm=Forms.GetFormByTypeAndCount("4", 1);


I think the second parameter is the count of the forms of this type and my newly created form is the last one? But how will I get the form-count for this type?



Thanks


Martin