Kindly suggest where an error while loading pdf file selected from list box

  • Thread starter Thread starter soomro abid
  • Start date Start date
S

soomro abid

Guest
private void DocList_Load(object sender, EventArgs e)
{
PopulateListBox(listBox1, @"C:\Scan", "*.PDF");
}

private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
IndexingForm indfrm = new IndexingForm(listBox1.SelectedItem.ToString());
indfrm.Show();

}

public partial class IndexingForm : Form
{
string path;
public IndexingForm(String path)
{
this.path = path;
Console.WriteLine(path);
InitializeComponent();
}

private void IndexingForm_Load(object sender, EventArgs e)
{

axAcroPDF1.src =path;
}
}

Continue reading...
 
Back
Top