Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a file that I have loaded into a richTextBox, and now I want to delete it,in my c# app, but can't because its in use by the app.
I need to close this file first, but don't know how.
Can someone please help me.

What I have tried:

C#
richTextBox1.LoadFile(null);
Posted
Comments
Ammar Al-hamdabni 18-Mar-17 13:20pm    
Do you use debug in .Net?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900