How can you save and Get data from Clipboard?



How can you save and Get data from Clipboard?..

Answer / ksantosha

Saving Data in Clipboard using Vb.
Fortext

Clipboard.Clear 'First u have to clear the clipboard
Clipboard.SetText Text1.Text 'Set the text into Clipboard

For Image

Clipboard.Clear
Clipboard.SetData Image1.Picture

To Get Data from Clipboard

Text1.text = Clipboard.gettext
Image1.picture = clipboard.getdata

Is This Answer Correct ?    8 Yes 2 No

Post New Answer

More Visual Basic Interview Questions

What do you mean by HTTP?

4 Answers   Wipro,


How to find the current record position in data control?

2 Answers  


How can I access a record by record number?

0 Answers  


What is the difference between Object and Class?

6 Answers  


Is there a way to break long lines in VB code?

0 Answers  






What is the difference between procedure and functions in VB?

15 Answers   Infrasoft,


How do I create controls dynamically (at run-time)?

0 Answers  


How would you declare and raise custom events in a class?

1 Answers  


What is ActiveX Dll and ActiveX Exe?

0 Answers  


What is Database Connection pooling (relative to MTS)

1 Answers  


What is the Windows API?

0 Answers  


What does the NewIndex property return?

2 Answers  


Categories