本文整理汇总了VB.NET中System.Windows.Controls.PasswordBox.Paste方法的典型用法代码示例。如果您正苦于以下问题:VB.NET PasswordBox.Paste方法的具体用法?VB.NET PasswordBox.Paste怎么用?VB.NET PasswordBox.Paste使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.PasswordBox
的用法示例。
在下文中一共展示了PasswordBox.Paste方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: TextBox
' A TextBox will serve as a contrived means of putting our test
' password on the Clipboard.
Dim txtBox As New TextBox()
Dim pwdBox As New PasswordBox()
' Put some content in the TextBox, and copy it to the Clipboard.
txtBox.Text = "Open Sesame!"
txtBox.SelectAll()
txtBox.Copy()
' Paste the contents of the Clipboard into the PasswordBox. After this
' call, the value of pwdBox.Password == "Open Sesame!".
pwdBox.Paste()