Hello again - here I have one question i need to implement event for buton which will open another instance of my current form. i knew how to do this that way :
string locationInSystem = System.Environment.CurrentDirectory.ToString();
string location = locationInSystem + "\\" + "myform.xsn";
XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(location);
but I need to hardcode my form name ( my code only gets current form location) I want to do this as hmm automate :) - is possible to put there some kind of function instead of "myform.xsn" ??
I will be very greatufull for any help