How to I make the default context menu enabled when I launch form and richtextbox programmatically?

I have a simple routine and a function.
When this form is launched, the RichTextBox does not have the default context menu like, cut, copy, paste. How can I make it enable

Form* DescForm = new Form();
RichTextBox* DescTBX = new RichTextBox();

DescForm->Size = System::Drawing::Size(800, 500);
DescForm->WindowState = FormWindowState::Maximized;
DescTBX->Text = csCommand;
DescTBX->BackColor = System::Drawing::Color::PaleGreen;
DescTBX->Font = new System::Drawing::Font(S"Courier New",10, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)0);
DescTBX->Dock = System::Windows::Forms::DockStyle::Fill;
DescForm->Controls->Add(DescTBX);
DescForm->ShowDialog();

Thanks.




Answer this question

How to I make the default context menu enabled when I launch form and richtextbox programmatically?

  • BostonZZZ

    Any Help/Clue

    Thanks,

  • How to I make the default context menu enabled when I launch form and richtextbox programmatically?