Introduction This code snippet explains how to calculate the size of the file and display in a label control. For example I am taking PDF file to find the size. It Displays the size of the file in Bytes, Kilobytes and Megabytes. //Calculate size of the PDF file if (PdfFilePath.EndsWith("pdf")) {...