how to make content of clipbaord stay

  • Thread starter Thread starter GS
  • Start date Start date
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
 
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)
 
Back
Top