To all the VS experts. I am using vb to code. I have an aspx webform with a textbox and a button. I need to copy the text within the textbox to the clipboard using the button. I have tried using clipboard.settext() however I get the following error
"Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it"
I do not want to use HTML.
I have googled for the last five days and have not found a solution. I am now running quickly out of time.
Any Suggestions please?
"Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it"
I do not want to use HTML.
I have googled for the last five days and have not found a solution. I am now running quickly out of time.
Any Suggestions please?
Last edited: