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.
当我尝试使用命令“Clipboard.SetText(Variable)”时,出现错误:
错误 BC30451:未声明“剪贴板”。由于其保护级别,它可能无法访问。
代码中可能有什么问题?
You could try My.Computer.Clipboard.SetText() instead of Clipboard.SetText()
My.Computer.Clipboard.SetText()
Clipboard.SetText()
you variable must be a string object otherwise use Clipboard.SetData() or Clipboard.SetDataObject()
string
Clipboard.SetData()
Clipboard.SetDataObject()