J
Jeff
....working with visualweb.net 2005 and vb.
....trying to simply copy the contents from a textbox to the clipboard.
I've looked at a large number of places on line and they give me various
code, but it doesn't work. I'm apparently missing some type of declaration,
and the code is diffent in visualweb.net than elsewhere.
When I try the code below, it tells me that the "name clipboard is not
declared"
What am I missing?
Thanks
Jeff
Protected Sub BtnCopy_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles BtnCopy.Click
Clipboard.SetDataObject(TextBox1.Text)
End Sub
....trying to simply copy the contents from a textbox to the clipboard.
I've looked at a large number of places on line and they give me various
code, but it doesn't work. I'm apparently missing some type of declaration,
and the code is diffent in visualweb.net than elsewhere.
When I try the code below, it tells me that the "name clipboard is not
declared"
What am I missing?
Thanks
Jeff
Protected Sub BtnCopy_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles BtnCopy.Click
Clipboard.SetDataObject(TextBox1.Text)
End Sub