Hi there,

I'm working on building a small application for home use. When a user does [control+c] to copy something, highlight an area to be copy, how do capture what context is being copy from those two options? Any help to point me to the right direction would be greatly appreciated.

If you are looking to pull something from the clipboard, then use the Clipboard static class. Something like this (more methods are available)

if (Clipboard.ContainsText())
        {
            string data = Clipboard.GetText();
        }

If you are looking to pull something from the clipboard, then use the Clipboard static class. Something like this (more methods are available)

if (Clipboard.ContainsText())
        {
            string data = Clipboard.GetText();
        }

What do you mean "pull something from the clipboard"? Can you tell me what is a clipboard?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.