Put in the clipboard, from an VB program, an image with a tooltip and a hyperlink to paste them into a Word or PowerPoint doc.

I tried to put
in the clipboard an image with an associated tooltip
and a hyperlink to paste them into a Word or PowerPoint doc.
I tried to do it with the usual Clipboard's methods SetData and GetData. It's easy to paste an image, text, rich text, html, but it does not appear to be able to associate metadata or hyperlink to an image.
Usally the tooltip
and the hyperlink are in the metadata
associated with the object.
I think it can be done with the CliboardData class and its Data and Metadata properties, working with the different items of the List of Objects, but I don't know how to tackle it.
Any suggestions?
Thank You

I tried to put
in the clipboard an image with an associated tooltip
and a hyperlink to paste them into a Word or PowerPoint doc.
I tried to do it with the usual Clipboard's methods SetData and GetData. It's easy to paste an image, text, rich text, html, but it does not appear to be able to associate metadata or hyperlink to an image.
Usally the tooltip
and the hyperlink are in the metadata
associated with the object.
I think it can be done with the CliboardData class and its Data and Metadata properties, working with the different items of the List of Objects, but I don't know how to tackle it.
Any suggestions?
Thank You
Does word or powerpoint associate a tooltip and hyperlink to an image and then allow that image with those associations to be copied to another open word or powerpoint document? If not then your probably wasting your time.
This code can "listen" for items copied to the clipboard. Needs a RichTextBox on a Form.
Option Strict On
Imports System.Runtime.InteropServices
Public Class Form1
' System.Windows.Forms.DataFormats class http://msdn.microsoft.com/en-us/library/system.windows.forms.dataformats(v=vs.110).aspx
Declare Function AddClipboardFormatListener Lib "user32.dll" (hWnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean
Declare Function RemoveClipboardFormatListener Lib "user32.dll" (hWnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean
Dim DataFormats As New Dictionary(Of String, String)
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.CenterToScreen()
DataFormats.Add("Bitmap", "Specifies a Windows bitmap format. This static field is read-only.")
DataFormats.Add("CommaSeparatedValue", "Specifies a comma-separated value (CSV) format which is a common interchange format used by spreadsheets. This format is not used directly by Windows Forms. This static field is read-only.")
DataFormats.Add("Dib", "Specifies the Windows device-independent bitmap (DIB) format. This static field is read-only.")
DataFormats.Add("Dif", "Specifies the Windows Data Interchange Format (DIF) which Windows Forms does not directly use. This static field is read-only.")
DataFormats.Add("EnhancedMetafile", "Specifies the Windows enhanced metafile format. This static field is read-only.")
DataFormats.Add("FileDrop", "Specifies the Windows file drop format which Windows Forms does not directly use. This static field is read-only.")
DataFormats.Add("Html", "Specifies text in the HTML Clipboard format. This static field is read-only.")
DataFormats.Add("Locale", "Specifies the Windows culture format which Windows Forms does not directly use. This static field is read-only.")
DataFormats.Add("MetafilePict", "Specifies the Windows metafile format which Windows Forms does not directly use. This static field is read-only.")
DataFormats.Add("OemText", "Specifies the standard Windows original equipment manufacturer (OEM) text format. This static field is read-only.")
DataFormats.Add("Palette", "Specifies the Windows palette format. This static field is read-only.")
DataFormats.Add("PenData", "Specifies the Windows pen data format which consists of pen strokes for handwriting software; Windows Forms does not use this format. This static field is read-only.")
DataFormats.Add("Riff", "Specifies the Resource Interchange File Format (RIFF) audio format which Windows Forms does not directly use. This static field is read-only.")
DataFormats.Add("Rtf", "Specifies text consisting of Rich Text Format (RTF) data. This static field is read-only.")
DataFormats.Add("Serializable", "Specifies a format that encapsulates any type of Windows Forms object. This static field is read-only.")
DataFormats.Add("StringFormat", "Specifies the Windows Forms string class format which Windows Forms uses to store string objects. This static field is read-only.")
DataFormats.Add("SymbolicLink", "Specifies the Windows symbolic link format which Windows Forms does not directly use. This static field is read-only.")
DataFormats.Add("Text", "Specifies the standard ANSI text format. This static field is read-only.")
DataFormats.Add("Tiff", "Specifies the Tagged Image File Format (TIFF) which Windows Forms does not directly use. This static field is read-only.")
DataFormats.Add("UnicodeText", "Specifies the standard Windows Unicode text format. This static field is read-only.")
DataFormats.Add("WaveAudio", "Specifies the wave audio format which Windows Forms does not directly use. This static field is read-only.")
AddClipboardFormatListener(Me.Handle)
End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
RemoveClipboardFormatListener(Me.Handle)
End Sub
Protected Overrides Sub WndProc(ByRef m As Message)
If m.ToString.Contains("msg=0x31d") Then
Invoke(New ClipboardListenerDelegate(AddressOf ClipboardListener))
End If
MyBase.WndProc(m)
End Sub
Private Delegate Sub ClipboardListenerDelegate()
Private Sub ClipboardListener()
If InvokeRequired Then
Invoke(New ClipboardListenerDelegate(AddressOf ClipboardListener))
Else
RichTextBox1.Clear()
For Each Item In DataFormats.Keys
If Clipboard.ContainsData(Item) = True Then
RichTextBox1.AppendText(Item & " .. " & DataFormats(Item) & vbCrLf)
End If
Next
End If
End Sub
End Class
La vida loca

Similar Messages

  • How to read the data from a file in another computer with user name and password login

    How to read read the data from a file in anohter computer which need to login with user name and password?

    duplicate post:  http://forums.ni.com/t5/LabVIEW/log-on-the-other-computer-with-user-name-and-password/m-p/2061478
    duplicate post:  http://forums.ni.com/t5/LabVIEW/do-need-to-enter-the-user-name-and-password-when-TCP-ip/m-p/2061612
    duplicate post   http://forums.ni.com/t5/LabVIEW/log-on-the-other-computer-with-user-name-and-password/m-p/2060682

  • Hi, I got buy iphone from the second hand and iPhone is missing, but not stoled. I've got the message from owner, but how I contact with real owner and make a deal with him?

    Somebody knows what to do?

    mindaugasfromltu wrote:
    Somebody knows what to do?
    Yes, we know what to do.
    Use this article: Find My iPhone Activation Lock: Removing a device from a previous ...

  • Hi, I have an iTunes account on my laptop set up to work with my old iPod. I now have an iPad and new iPod but set up under a different account- can I put all the songs from my iTunes onto the new devices. Thanks.

    Hi, I have an iTunes account on my laptop set up to work with my old iPod. I now have an iPad and new iPod but set up under a different account- can I put all the songs from my iTunes onto the new devices. Thanks.

    Yes
    Put all the music on one computer, make sure it is authorized for all accounts, sync.

  • How do I put all the episodes from a TV show into one iTunes folder?

    Can someone tell me how to put all the episodes from a TV show into one folder?  I'm not sure how I did this, but while converting my dvd's to digital on my computer, one TV show (Firefly) created one folder with the Firefly name, and within that folder are all the episodes.  I've tried to recreate this with MASH, but it just puts each episode into the TV library.  This gets very messy with alot of different TV shows.  Help!  Thanks!!

    In principle TV Shows are grouped on the Show field and within a show sub-grouped on Season No. In practice recent builds of iTunes and/or Apple TV firmware seem to be taking account of Album, Artist & Album Artist in certain views. For consistency I would suggest the following approach:
    Show = Album = <Show Name>
    e.g. "30 Rock"
    Artist = Album Artist = <Show Name> Cast (or something like that)
    e.g. "30 Rock Cast"
    Season No. = <Season No.> or <Blank> (Separate seasons or all listed together)
    e.g. 1-3
    Episode ID = s##e## (This field, sorted alphabetically, controls order)
    e.g. s01e01 - s03e58 (use s##e### when >99 episodes)
    Episode No. = Track No. = <Absolute Episode No.>
    (Can also be per season, but abs. is better) e.g. 1 - 58
    Disc No. = <Season No.> (Can be set even if merging seasons)
    e.g. 1-3
    Taking this approach you can always merge or split into individual seasons simply by clearing or setting the Season No. field.
    For general tips on organizing media in iTunes see Grouping tracks into albums.
    tt2

  • How do I put all the songs from a compilation album into the same /album/folder in Itunes v12

    How do I put all the songs from a compilation album into the same /album/folder in Itunes v12 i know in other versions it was via get info but as all of the tunes have the same album title , I am not sure what tio change to achieve this ?

    I don't see your screenshot but I assume you're starting with something like this, i.e., the compilation split into multiple albums:
    If you select all the items that you want to be in a single album, right-click > Get Info you'll see this:
    As you say, in iTunes 12 you don't see a field to enter a distinct Album Artist value.  You can, however, address this by clicking the Add Field button and selecting Album Artist:
    That makes the field available in the metadata dialog so that you can enter the required value:
    You can also show the pre-iTunes 12 version of the dialog by holding the SHIFT key when selecting Get Info - this allows you to enter the Album Artist directly:

  • So I made a new account on my computer for my sister, and none of the music that I put on the computer from CD's i no longer have aren't on there, The purchansed ones are on there.

    So I made a new account on my computer for my sister, she had a lot of music on her ipod, i opened itunes for her and none of the music that I put on the computer from CD's, That I no longer have, are on there, The purchansed ones are on there though. But when i go back and log onto my account all of the music's there. Please help me.

    For music that you've purchased from Apple that are on your iPhone you should be able to copy to your computer's iTunes via File > Transfer Purchases. Also if you are in the US then you should be able to re-download past music purchases for free : http://support.apple.com/kb/HT2519
    For your own music that you've copied, then if you haven't got a backup on, for example, external drives or CDs/DVDs then you could see if any of the utilities mentioned in this old post still exist and work

  • HT1349 i just got my second ipad, i want to put all the music from my 1st one straight to my second, how do i do that?

    i just got my second ipad, i want to put all the music from my 1st one straight to my second, how do i do that?

    Set you 2nd iPad from your 1st iPad. If you have your music in your iTunes library, it's easier as you can set it up as a new device and then go to music>sync all music.
    Once you set up you 2nd iPad from your 1st one, if you want do not want the other setting to be synced, turn it off. For example, in apps, uncheck everything and you can get rid of them.

  • I am trying to connect to apple support and it keeps asking me to put in the SN of my MAC and when i do it says that the SN is invalid I am putting in the SN from under about this mac and it is the same as the one one the bottom of the MAC any ideas ?

    I am trying to connect to apple support and it keeps asking me to put in the SN of my MAC and when i do it says that the SN is invalid I am putting in the SN from about this mac and it is the same as the one on the bottom of the MAC any ideas ?

    Did you purchase this product direct from Apple online, in an Apple Store, or through a third-party authorized reseller? Or did you buy it from an original owner whose Applecare plan was supposed to be transitioned to a new owner, by them?
    Do you have an original shipping carton the unit arrived in?
    If the product was a retail 'open carton' purchase and no
    back-track is possible, contact the reseller.
    And if the computer had seen a major service with logic
    board replaced, etc, it may have other issues with serial
    number vs one they may have assigned it. Usually a
    new logic board may have the SN flashed or if a unit
    was determined to be a reman, a new # assigned. But
    that would appear in System Profiler, if officially reman.
    If you registered a product anywhere with Apple, it would show on a web page along with its serial numbers, going back several years, at this page after you log in there.
    https://getsupport.apple.com/GetproductgroupList.action
    A blue text with triangle See all products and services opens an Apple ID
    sign-in window, then the page changes to show your items & info about them.
    If you run the serial number through online Lookup, what appears?
    http://www.powerbookmedic.com/identify-mac-serial.php
    Not sure if this helps, 'your product' should appear - if registered.
    Good luck & happy computing!

  • Is there any way to put all the music FROM my iPod back onto my computer?  My school tech person not only wiped out my iTunes, the wiped out my back-up hard drive.

    Is there any way to put all the music FROM my iPod back onto my computer?  My school tech person not only wiped out my iTunes, the wiped out my back-up hard drive.

    Hello cgbuehling
    You can, but only the purchases that were made from the iTunes Store. Other content that was imported from a CD or other sources will not transfer over.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    Regards,
    -Norm G.

  • How do I migrate the passwords from secured pdfs/their profiles to a new computer and new version of

    how do I migrate the passwords from secured pdfs/their profiles to a new computer and new version of acrobat?  I lost one computer that had standard 9, went to new computer, then upgraded to XI.  All my password profiles are not coming through.  How do I get them back?

    There is also a program called Senuti that I used when I had a PC crash with all my iTunes stuff on it:
    www.fadingred.com/Senuti

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

  • HT204053 i have two apple id one for Store purchases and the other for iCloud, and i want to merge them into one, can i transfer all app from one to other ?

    i have two apple id one for Store purchases and the other for iCloud, and i want to merge them into one, can i transfer all app from one to other ?

    It is not possible to merge Apple IDs.

  • HT4528 Can I put the same information on two different i-phones with different numbers and different ID's?

    Can I put the same information on two different i-phones with different numbers and different ID's?

    Yes and no it really depends on what information you are putting on the devices.

  • HT201302 I am trying to copy photos from an iPad to a Mac Air, but iPhoto does not recognize them Do you have to use PhotoStream to do this. Please forgive the ignorance, but we have just started moving to apple products and I know nothing about them. Tha

    I am trying to copy photos from an iPad to a Mac Air, but iPhoto does not recognize them. Please forgive the ignorance, but we have just started moving to apple products and I know nothing about them. Do you have to use PhotoStream to do this?

    How did the photos that you want to copy off get on the iPad  ? To copy photos to your computer that were taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites then see this page - on a Mac you should be able to use iPhoto, Aperture or Image Capture
    To copy photos that were originally synced from a computer you will need a third-party app on your iPad such as Simple Transfer which can copy them off via your wifi network. But as photos are 'optimised' when they are synced to the iPad, any that you then copy back to a computer may not be exactly the same as they originally were on your computer.

Maybe you are looking for