Saving a WPF C# App Richtextbox using savefiledialog
How do you go about saving the contents of the richtextbox using the save file dialog? I don't want to point to a specific location (i.e.
fStream = new FileStream(@"C:", FileMode.Create);
...as this throws an exception "Access to the path 'C:\Windows\SysWOW64' is denied."
Any help on how to implement the save filedialog much appreciated.
Kirtan PatelPosted Dec 13, 2009, 1:38 AM
C:\Windows\Wow64 is System folder and If you are on Vista or Windows 7 then to Write in System Folder you need to Run your Application as Admin.
Right Click The exe of your application the-- > Run as Administrator .
Then it will allow you to write there :)
if my answer helps you then check "Do you like this answer" check box please :)