Jump to content
Xtreme .Net Talk

Maninder Kaur

Members
  • Posts

    2
  • Joined

  • Last visited

About Maninder Kaur

  • Birthday 01/19/1985

Maninder Kaur's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This code can help u char[] textValue = textBox1.Text.ToCharArray(); foreach (char c in textValue) lblAsciiValue.Text += (int)©;
  2. As u r opening the file before deleting the same file so as u open the file for writting then obviously it is used by the process ,so just delete that line I m using following code for deleting the file and it is working very fine string fileName = textBox1.Text.Trim(); try { if (File.Exists(fileName)) { //File.OpenWrite(fileName); File.Delete(fileName); MessageBox.Show("File Deleted Successfully"); } else { MessageBox.Show("File does not exists"); } } catch (FileNotFoundException ex) { MessageBox.Show(ex.Message.ToString()); }
×
×
  • Create New...