469,626 Members | 1,039 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

CLose application

Hello guys,

I'm writing a little application and I need to copy something into the
clipboard and then close the application. When I terminate the app with END
or Me.Close the clipboard gets cleared and I get nothing out of it.

I'm sorry if this is too easy for you guys but I'm not a programmer. I'm a
system administrator trying to work around a problem in an application with a
little VB app.

Thank you for your help!

Have a great day.
Mar 15 '06 #1
1 1060
I found the answer.
http://www.thescripts.com/forum/thread453644.html

but in a few words, what Kerry wrote is this:

"There is an overloaded version of SetDataObject that lets you specify
whether or not the data should remain in the clipboard after your app closes:"

Clipboard.SetDataObject(template, True)

And it worked!! :-D

Have you all a great day!
"GeorgeK" wrote:
Hello guys,

I'm writing a little application and I need to copy something into the
clipboard and then close the application. When I terminate the app with END
or Me.Close the clipboard gets cleared and I get nothing out of it.

I'm sorry if this is too easy for you guys but I'm not a programmer. I'm a
system administrator trying to work around a problem in an application with a
little VB app.

Thank you for your help!

Have a great day.

Mar 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by ktos | last post: by
1 post views Thread by Alpha | last post: by
35 posts views Thread by Eric Sabine | last post: by
3 posts views Thread by Karan | last post: by
4 posts views Thread by Jason Huang | last post: by
8 posts views Thread by Rodrigo Juarez | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.