Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Image Control To Clipboard
Message
From
10/01/2007 17:54:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/01/2007 18:35:57
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01141011
Message ID:
01184394
Views:
21
>Hi:
>
>If you want, you could go the .NET Route:
>
>Here is How I do it using .NET Extender for VFP. Basically I use the methods of the class System::Windows::Forms::Clipboard from VFP.
>
>LOCAL oImage
>
>= SETClrClassLibrary("system.drawing.dll",.T.)
>
>* Invokes the Constructor Bitmap(String filename)
>
>oImage = CLRCreateObject("system::Drawing::Bitmap",GETPICT()) && Load the bitmap
>
>* Copy as a Bitmap the oImage
>= CLRInvokeStaticMethod("System::Windows::Forms::Clipboard","SetImage",oImage)
>
>That's it,
>
>Hope this helps you
>
>Martin

I could copy an image to clipboard even when .Net was just an idea. I can do that in .Net too when I use .Net.
Thanks.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform