Solved

copying text in textbox or listbox to the clipboard

Posted on 2004-10-13
1
251 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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now