Visual Studio Development Bookmark and Share   
 index > Visual Basic Express Edition > Copy to Clipboard function in VB.Net
 

Copy to Clipboard function in VB.Net

Can anyone tell how to add a clipboard function in .NET?

wtrihardiny  Thursday, May 15, 2008 6:32 PM

Use the Clipboard class.

JohnWein  Thursday, May 15, 2008 7:35 PM

Use the Clipboard class.

JohnWein  Thursday, May 15, 2008 7:35 PM
Hi Wtrihardiny,

Read Clipboard handling with .NET. It is an introduction to using the clipboard.

Best regards,
Riquel
Riquel_Dong  Monday, May 19, 2008 11:38 AM

wtrihardiny  Thursday, May 29, 2008 5:24 PM

Hi Jhon,

      Good day,iam trying to use the Cipboar function ,but it went no luck

1) i want to use  it in webaplication


2) i added System.Windows.Forms;

3) Clipboard.SetDataObject(txtDocNumGen, true);

it is giving error as

 

Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it

iam not using any threading.

please give me a suggetion.

Thanks,
raju.

raj7172  Wednesday, October 14, 2009 1:22 PM

You can use google to search for other answers

Custom Search

More Threads

• how to use the Date TIme Picker
• Making 1000000 look like 1.000.000 ?
• Play sounds through speaker?
• Process List
• can't edit while debugging
• what is Visual Studio 2008 Express Editions
• sorting problem with DataGridView
• Card Game Help
• Developing and Implementing Group Policy
• printing multipage document