System::Windows::Forms::Clipboard

Copy text to the clipboard


	Clipboard::SetText(SomeTextBox->Text);

Copy Image To Clipboard


	MemoryStream ^MemoryStream1 = gcnew MemoryStream();
	Chart1->SaveImage(MemoryStream1, DataVisualization::Charting::ChartImageFormat::Bmp);
	System::Drawing::Bitmap ^Bitmap1 = gcnew System::Drawing::Bitmap(MemoryStream1);
	System::Windows::Forms::Clipboard::SetImage(Bitmap1);
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published.