Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到在我的表单关闭时,剪贴板被处理掉了。我将如何在表单关闭时不处理复制到剪贴板的任何项目?假设我想复制一些东西,关闭表单,然后将该信息粘贴到其他地方......谢谢!
SetDataObject 有一个重载版本,可让您指定在应用关闭后数据是否应保留在剪贴板中:
Clipboard.SetDataObject(template, True)