Windows Form and Printing to a text box

I'm working on a simple windows application using Visual Studio and I was wondering if there was a way I could have a button that, when pressed, would do some stuff and then have it print out stuff to a text box adjacent to the button?


Ex.

|------------------------|
|                        |
|  button                |  button does something, then prints stuff in text box
|     |                  |
|      \                 |
|       -->   text box   |
|                        |
|------------------------|
Last edited on
Of course. Simply have the button call SendMessage() with the HWND of the textbox and the WM_SETTEXT message.
What's the "HWND"and "WM_SETTEXT"?
closed account (1vRz3TCk)
1
2
3
4
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) 
         {
             richTextBox1->Text = "Stuff";
         }
Tried something of that nature and its not working.
That is a completly useles reply
Nevermind. Figured it out.
Topic archived. No new replies allowed.