'We assume that the GdViewer1 control has been properly integrated.
Dim status As GdPictureStatus = GdViewer1.DisplayFromFile("")
If status = GdPictureStatus.OK Then
MessageBox.Show("The loaded file path is: " + GdViewer1.GetLastPath(), "GdViewer.GetLastPath")
Else
MessageBox.Show("The file can't be loaded. Status: " + status.ToString(), "GdViewer.GetLastPath")
End If
//We assume that the GdViewer1 control has been properly integrated.
GdPictureStatus status = GdViewer1.DisplayFromFile("");
if (status == GdPictureStatus.OK)
MessageBox.Show("The loaded file path is: " + GdViewer1.GetLastPath(), "GdViewer.GetLastPath");
else
MessageBox.Show("The file can't be loaded. Status: " + status.ToString(), "GdViewer.GetLastPath");