PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
how to make content of clipbaord stay
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
how to make content of clipbaord stay
![]() |
how to make content of clipbaord stay |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
> 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) |
|
|
|
#3 |
|
Guest
Posts: n/a
|
thank you; you saved the day.
"AMercer" <AMercer@discussions.microsoft.com> wrote in message news 2736E30-E80A-4974-A2F2-0BFD9C23D568@microsoft.com...> > 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) |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

2736E30-E80A-4974-A2F2-0BFD9C23D568@microsoft.com...
