|
-
Jun 28th, 2007, 05:21 PM
#1
Thread Starter
Junior Member
[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!
Last edited by GODzillaSDM; Jun 28th, 2007 at 05:28 PM.
-
Jun 28th, 2007, 05:38 PM
#2
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
-
Jun 28th, 2007, 05:59 PM
#3
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
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 28th, 2007, 09:12 PM
#4
Thread Starter
Junior Member
Re: extract value from window's copy CTRL+C memory
awesome! thanks guys!! i'll go try it out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|