vb.net program that generates code and copy it to clipboard
I'm planning to create a vb.net program that generates mysql codes. Is is 开发者_运维百科possible that after the program has generated the code, it will copy it in to the clipboard immediately?
Clipboard.SetText("some test")
If this program is command line, you'll need to add a reference to System.Windows.Forms.
yes, you can just use the Clipboard.SetText(text As String) method to do this.
I have just used the same code;
Clipboard.SetText(Password)
精彩评论