how to make content of clipbaord stay

G

GS

my vb.net application make available some text for pasting to other
application . clipboard content is available during the show message. when
that is done the sub exit, the clipboard is empty

I tried
sText = 'sometext"
Clipboard.SetText(sText)

also tried
System.Windows.Forms.Clipboard.SetText(sText)
but the clipboard got emptied when control is returned to application UI
 
G

Guest

my vb.net application make available some text for pasting to other
application . clipboard content is available during the show message. when
that is done the sub exit, the clipboard is empty

I tried
sText = 'sometext"
Clipboard.SetText(sText)

Try this:
Clipboard.SetDataObject(sText, True)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top