Wondering if I am doing this write, I have the code below, but for some reason, it says text is invalid (runtime error) wondering If i am doing it right, here is the code below:
OpenFileDialog dlg = new OpenFileDialog();
private void btnbrowse_Click(object sender, EventArgs e)
{
dlg.Filter = "Text Documents only (*.txt)|*.txt|All Files|*.*";
if (dlg.ShowDialog() == DialogResult.OK)
{
txtbrowse.Text = dlg.FileName;
}
else
{
MessageBox.Show("Please choose a Text File");
}
rchtxtdecrypt.LoadFile(txtbrowse.Text);
}


Sign In
Create Account


Back to top









