i am making an application in vb.net and i need help. The user will send me his issues or information through attachment. but i want a restriction on filesize that he can not attach file more then 20MB
i did some coding but its not working. it will show the size of file but not axectly the size in MB..
now in above code it will show me the size of file in textbox1 but in bit like 1234567
i need it to show me in MB like 1MB or 10KB