You probably resolved it a minute after you posted, but for the sake of anyone else who might be facing this same problem...
Make sure to add a reference to System.Windows.Forms and add the same import in the code file. On Sep 24, 8:11 pm, Rob Buonocore <[email protected]> wrote: > I have a text box that gets populated with lines of text throughout > the program. At the end of the program, I want the user to be able to > copy the text from the box to the clipboard. I thought this would be > easy but for some reason I can't get it to work. The code I have is > > Clipboard.SetDataObject(Me.txtFile.Text, True) > > The system doesn't like me using the word clipboard. Its underlined > in blue. Is there something I need to do to make the clipboard > available? > > Robby -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
