That is an instance property you need to create an instance of Form2
to access xmlDialogconstante
or make it static.
You can create an instance and access your property like this, but if you don't initialize it before accessing you will get null.
form2 f = new form2();
string value = f.xmlDialogconstante;