top of page
my youtube channel icon (circle version)

How to make 'copy to clipboard' button in C# winForm


When making a textbox that output a result you should make it easier for the user to copy the result by adding a 'copy to clipboard' button. We all see the copy to clipboard button in Google Drive, social media sharing links, and etc but the question is, how to make one? Well, good question because here I'm going to show you how to make a copy to clipboard button using C# winForm .net application.


Step #1: place a button and a textbox to your C# winForm


Step #2: double click your button


Step #3: paste this code:

textBox1.Copy(); 

into your onclick button event (the one event that is automatically generated when ever you double click on a certain C# widgets)


and that is pretty much it.

190 views0 comments
bottom of page