i have class static variable
public static string appdatasavingfolder = ""; [...] string *appdatafolder* = environment.getfolderpath(environment.specialfolder.applicationdata); *appdatasavingfolder* = appdatafolder + @"\appfolder";
then in code use load xml file treeview
this.tvtaskstree.filepath = program.*appdatasavingfolder* + @"\list.xml";
but (i can't recognise when) vs replace string e.g
this.tvtaskstree.filepath = "c:\users\[user]\appdata\roaming\appfolder\list.xml";
so it's make error when program open in other computer out folder "c:\\users\\[user]".
how disable option (replacing) constants?
Comments
Post a Comment