CLose application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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!
 
Back
Top