I have tried this but this only gets the file name not the extension. How do I get file name with extension?
string[] FileList = (string[])e.Data.GetData(DataFormats.FileDrop, false);
string filename = Path.GetFileNameWithoutExtension(FileList[0]);