get last copied text and image
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
2 posts
Page 1 of 1
hello guys
this is a small snippet that will display the last copied text in the richtextbox
thanks
this is a small snippet that will display the last copied text in the richtextbox
Code: Select all
this will display the last copied image in picboxPublic Class Form1
'shimthecoder
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
If My.Computer.Clipboard.ContainsText() Then
Dim ClipText As String
ClipText = My.Computer.Clipboard.GetText
RichTextBox1.Text = (ClipText)
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
Code: Select all
Public Class Form1
'shimthecoder
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
If My.Computer.Clipboard.ContainsImage() Then
Dim ClipboardImage As System.Drawing.Image
ClipboardImage = My.Computer.Clipboard.GetImage
PictureBox1.BackgroundImage = ClipboardImage
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
thanks
Find my programs on Softpedia
This is a simple tutorial but useful, thanks for sharing!
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
2 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023