'Define GdViewer object in your application.
Friend WithEvents GdViewer1 As GdViewer
'Create an instance.
GdViewer1 = New GdViewer()
'Set your preferred properties here.
GdViewer1.Name = "GdViewer1"
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 245, 245, 220))
' ...
'Add to your application controls.
Controls.Add(GdViewer1)
'Probably the GdViewer1 instance is disposed of automatically in your application,
'but you can still do it this way.
'GdViewer1.Dispose()
//Define GdViewer object in your application.
internal GdViewer GdViewer1;
//Create an instance.
GdViewer1 = new GdViewer();
//Set your preferred properties here.
GdViewer1.Name = "GdViewer1";
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 245, 245, 220));
// ...
//Add to your application controls.
Controls.Add(GdViewer1);
//Probably the GdViewer1 instance is disposed of automatically in your application,
//but you can still do it this way.
//GdViewer1.Dispose();