File Size

  • Thread starter Thread starter aussie rules
  • Start date Start date
A

aussie rules

Using a fileopen dialog, my user can select a file. I save this file name
into a string value.

How can I get the file size, so that I can make sure that the maximum file
size they select is 10mb

Thanks
 
* "aussie rules said:
Using a fileopen dialog, my user can select a file. I save this file name
into a string value.

How can I get the file size, so that I can make sure that the maximum file
size they select is 10mb

'FileLen' will return the file's size in bytes. Alternatively, you can
use 'System.IO.FileInfo.Length'.
 
Back
Top