C# Displaying text in a panel? cut and paste?

I have a simple application that has some buttons and a "panel". When the buttons are pressed I want to change (pste) some text into the panel that the user could then cut and paste out. IS a pnel the right thing to use and if so how do I display my strings in the panel.

I tried panel1.setText("Test")

No work. Thanks!
Who is Participating?
Priest04Connect With a Mentor Commented:
Panel is just a container. Use TextBox instead. If you want it to look similar to panel, then change its backColor and BorderStyle

You have to be more specific - is it a web or windows application?

Nevertheless for either web or windows, Panel is a container control, your'e supposed to drop controls on it. It even doesn't even have Text or SetText properties.

As a message display you can use Label or TextBox controls.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.