[RESOLVED] extract value from window's copy CTRL+C memory
Hello,
Anyone know how can I extract the value from window's copy or ctrl+c.
for example, lets say i highlight any text or number, and copy it using ctrl+c.
Now, in my vb code, i want to extract the value from this memory, using a button, and paste it into the textbox. Is there anyway to get this value WITHOUT using ctrl+v or any variations of?
I hope i make sense.
Thanks!
Re: extract value from window's copy CTRL+C memory
Write in your code and intellisense should pop up with some properties, I think you will find which one suits your needs;)
Re: extract value from window's copy CTRL+C memory
something like this is one way to do it.
VB.NET Code:
If Clipboard.ContainsText = True Then
Me.TextBox1.Text = Clipboard.GetData(System.Windows.Forms.DataFormats.Text)
Else
MessageBox.Show("Clipboard does not contain any valid text on it.")
End If
Re: extract value from window's copy CTRL+C memory
awesome! thanks guys!! i'll go try it out.