Hello.
Please advise. I created three children's windows on the main window and I placed a richTextBox in each. In the main window, I created a menu system, including Edit - Copy, Paste, ...... And this problem:
So I have three children's windows that do not overlap each other. In one box I write text, mark something and use Copy from my menu. How can I ensure that using Paste (of course, from my menu) will save the selected text to a window I clicked to be active? Copy - Paste works smoothly in the window, but I want to transfer text using Paste to other child windows.
I've tried something like that, but without success ...
Please advise. I created three children's windows on the main window and I placed a richTextBox in each. In the main window, I created a menu system, including Edit - Copy, Paste, ...... And this problem:
So I have three children's windows that do not overlap each other. In one box I write text, mark something and use Copy from my menu. How can I ensure that using Paste (of course, from my menu) will save the selected text to a window I clicked to be active? Copy - Paste works smoothly in the window, but I want to transfer text using Paste to other child windows.
I've tried something like that, but without success ...
HTML:
// *** PASTE MENU ****************************************************
// Paste funkcia
// *******************************************************************
private void pasteMenu_Click(object sender, EventArgs e)
{
if (Okno2.Visible) Okno2.richTextBox2.Paste();
if (Okno3.Visible) Okno3.richTextBox3.Paste();
if (Okno4.Visible) Okno4.richTextBox4.Paste();
}