c# - Environment Variable in Application Settings File -


I have an application settings property to populate a TextBox with a user's my document I am trying to use the folder. I can not seem to know how to use% USERPROFILE% environment variable though to get it.

I've tried $ (USERPROFILE) \ My document for the default value of the property, but it does not work.

You can get my documents folder with environment. GetFolderPath () .

  using the system; String Moodments = Environmental Gatefolder Path (Environmental Folder. My Documents); 

P>

/ html>

Comments