4
I’m new to C#
, and wanted to create a button that when clicked, it will copy the text described in that same button.
If I didn’t make myself clear, imagine button has a text inserted in it (eg: Csharp), when you click this button, the content Csharp
will be copied. Then you can go and open for example the Notepad and give a paste, and the text Csharp
will be pasted.
Someone can help me create it?
Cezar, good morning ! thank you so much for your help !!!! The only problem I didn’t get right where to put the text, my disculpas more I’m too lay, I just downloaded Visual Studio 2010. The content I need to have the text is about 40 lines , poi is a server configuration. Can you keep helping me where I can put this text? Thanks !!!
– Rodrigo Hackz Exploitz
Detail me (without cutting anything) what you really want to do ???
– Cezar
Cezar, thank you for answering ! The button is called Tomcat , and clicking it will copy the configuration of a server , the content of this text has approximately 40 lines at 80 lines. Type your example is perfect , only that instead of your button called Csharp , will be Tomcat , and the text will be quite large ( 40 to 80 lines ) instead of Csharp which you pasted in the notepad , understand me? Where do I put my text ? instead of the word Csharp ( replace with 40 to 80 lines ). Thanks !!!
– Rodrigo Hackz Exploitz
You can put it in a variable, no problem. Where does your text come from? it will stay inside the application ?
– Cezar
Yes, the text will be inside the application . The text I already have , is 40 to 80 lines . Can you help me with that, please? Thank you.
– Rodrigo Hackz Exploitz
I already put an addendum in the reply follow and you will surely get to make your app.
– Cezar
Let’s go continue this discussion in chat.
– Cezar