Copy and Paste in C# .NET

Posted by Sakthi.Singaravel under C# category on | Points: 40 | Views : 1915
for copy a selected item in textbox..


To avoid NullReferenceException check it contains data or not..

if (textBox1.SelectionLength > 0)

To paste that copied text..

textBox2.Paste( ); 

Comments or Responses

Posted by: Mani5155 on: 4/11/2012 Level:Starter | Status: [Member] | Points: 10
thank you

Login to post response