Hey Herfried,
I just realized my folly!
The below works fine:
Clipboard.SetDataObject(MyApp.frmSubmit.ActiveForm .Icon.ToBitmap());
if one instantiates an instance of the form first!
MyApp.frmSubmit MyForm=new MyApp.frmSubmit();
Clipboard.SetDataObject(MyForm.Icon.ToBitmap());
Like the saying goes "Brain on vacation... please call back later."
Thanks for the assistance. Looking at your code jogged my memory.
I just haven't adjusted to the meanings of the new error messages under
..Net.
Regards,
TC
The problem is that my image is actually
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
"T-Man" <ge**********@yahoo.com> schrieb:
Clipboard.SetDataObject(MyApp.frmSubmit.ActiveForm .Icon.ToBitmap());
Does anyone know how to do this in .Net?
Mhm... Try this:
\\\
Dim img As Image = Image.FromFile("C:\camera.bmp")
Clipboard.SetDataObject(img, True)
...
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>