Hi. I was just wondering if there is a simple way to detect if the filetype is a sort of docuemnt which can be read and written. e.g. txt, docx, ini ect. I want to make it in s uch a way that when the listview selects and item it will check those filetypes and if it's not a document then a button doesn't get enabled. If it is then the button does get enabled.