c++/cli questions

Hi everyone,

Im doing a small program for work. I'm still new to this so ill ask a quick question or two.

I have several tick boxes, and they all have output to a richtext box (picked it because i could resize it. If there is something better then that i would like to know if possible please :) )

When i put a tick into the tick box it outputs fine but when i put a tick in another box it outputs in the exact same spot and removes the previous text. How do i make it go underneath. I have tried endl;, /n and std::endl; with no joy. I have included the namespace std and iostream. How can i adjust this so it goes underneath.

This is the code im using:

1
2
3
4
	private: System::Void checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) 
			 {
				 richTextBox1->Text = "Test";
			 }

Also when i remove the tick how can i make the text disappear?

Also how can i export what's in the rich text box to a .txt file?


Thank you for your help i really appreciate it :D


Regards

Vhorx
Last edited on
Topic archived. No new replies allowed.