Here is what I came to conclusion with Thanks to OrigianalGriff
public string MD5HashFile(string fn)
{
byte[] hash = MD5.Create().ComputeHash(File.ReadAllBytes(fn));
return BitConverter.ToString(hash).Replace("-", "");
}
private void lblTitle_Load(object sender, EventArgs e)
{
}
private void scanButton_Click(object sender, EventArgs e)
{
string path = txtFilePath.Text;
if (!File.Exists(path))
{
return;
}
else
{
MessageBox.Show("Scan Complete");
}
hashDisplay.Text = MD5HashFile(path);
}
Thanks again OriginalGriff for explaining!