Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

get image from clipboard

$
0
0

My issue is with this code below, i always get an exception saying there is no image in clipboard although i know there is, thanks in advance.

Try
            If My.Computer.Clipboard.ContainsImage() Then
                Dim ClipImage As System.Drawing.Image
                ClipImage = My.Computer.Clipboard.GetImage
                Me.BackgroundImage = ClipImage
            Else
                MsgBox("No Images in ClipBoard")
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
End Try


P.Clegg


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>