Code: Select all
public frmViewer(string s)
{
InitializeComponent();
axGDV.SetLicenceNumber("deleted");
System.Threading.Thread.Sleep(50);
axGDV.DisplayFromFile(s);
}
I get a white display. No image.
If I init as normal:
Code: Select all
public frmViewer()
{
InitializeComponent();
axGDV.SetLicenceNumber("deleted");
}
Code: Select all
private void toolStripButton1_Click(object sender, EventArgs e)
{
axGDV.DisplayFromFile("c:\\test1.jpg");
}
Why does it work perfectly one way and not the other?
EDIT: Also, if I init as in the first example that produces a white box, and leave in the toolstrip button, and I click the button, it still displays a white box, no image.