-3

Can someone give me a simple example of how to write text in a RichTextBox? I've looked online for some sample code without finding much help.

The only thing that I found was that I would have to declare a RichTextBox variable:

//Using C++
RichTextBox richbox = gcnew RichTextBox;

However, this doesn't work at all.

DannyD
  • 2,732
  • 16
  • 51
  • 73

1 Answers1

3

Rich edit box controls are provided by many different frameworks. How they are implemented in either language will depend on the one you choose.

For C++ there is the ever popular windows specific Win32 API or MFC, or if you are diving into the .NET framework there is WinForms. There are also cross platform libraries like wxWidgets or Qt.

For Java, the JDK has AWT and Swing. There is also the Standard Widget Toolkit and others.

Once you choose a language and a framework, try to create your application with the rich edit control. If you have trouble come back with your code and we can help you with more specific questions.

Community
  • 1
  • 1
Dave Rager
  • 8,002
  • 3
  • 33
  • 52