Solved

copying text in textbox or listbox to the clipboard

Posted on 2004-10-13
1
255 Views
Last Modified: 2012-05-05
on a form I have a button titled copy.  This program converts numbers to text.
 example:  100 ....One Hundred.....1,200.....One thousand two hundred.....etc.

I want to take the converted text that is displayed in a Textbox and if they click the copy button the text is copied to the clipboard.
Even better is it possible to copy this to the clipboard the number entered in Textbox1 (100)  plus "=" and the converted number in TextBox2

example:  100 = One Hundred

Thank You........
0
Comment
Question by:ucla11
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 125 total points
ID: 12302982
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
   Clipboard.SetDataObject(TextBox1.Text)
End Sub
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web Form VB.Net  import CSV 4 44
Help with consolidating excel files using VB.net 2 29
Complex SQL statement in VB.NET 7 31
FInd Image Control Gridview 3 21
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question