'We assume that the GdViewer1 control has been properly integrated.
If GdViewer1.DisplayFromFile("") = GdPictureStatus.OK Then
'Do your stuff here ...
GdViewer1.Clear()
'...
If GdViewer1.Redraw() <> GdPictureStatus.OK Then
MessageBox.Show("The file can't be redrawn. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.Clear")
End If
End If
//We assume that the GdViewer1 control has been properly integrated.
if (GdViewer1.DisplayFromFile("") == GdPictureStatus.OK)
{
//Do your stuff here ...
GdViewer1.Clear();
//...
if (GdViewer1.Redraw() != GdPictureStatus.OK)
MessageBox.Show("The file can't be redrawn. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.Clear");
}