How To Make PDF Reader In C# .net Using Visual Studio


Its the code for open file box

OpenFileDialog open = new OpenFileDialog();
open.Title = “Open”;
open.Filter = “All Files|*.pdf”;
try
{
if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
axAcroPDF1.LoadFile(open.FileName);
}
}
catch (ArgumentException ex)
{
MessageBox.Show(ex.Message.ToString(), “Error”, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), “Error”, MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Hit like