Sin Jeong-hun
September 25th, 2002, 11:57 PM
In Microsoft Visual Studio .NET IDE, copy/cut/paste menus (and the equivalent toolbar buttons) are only activated when the carret is in an inputtable control such as text box and combo box of property window, or the text editor. If the carret is in property window, when I click paste button, the text is pasted to property window.
Do you know SharpDev? It's a clone of Visual Studio .NET written with C#. In SharpDev, if the carret is not in an inputtable control (therefore copy/paste/cut can't be operated), copy/cut/paste menus are always active as long as there is an open document. Moreover, though the carret is in property window, when you click paste button, the text is always pasted to the main text editor.
Of course, I want my program to behavior like Visual Sutio.NET. I want copy/cut/paste buttons are only activated when there is a child form and the carret is in some inputtable control. I want my program to paste the text into the control the carret is in.
How can I achieve this? Please teach me the concept. Thank you.
Do you know SharpDev? It's a clone of Visual Studio .NET written with C#. In SharpDev, if the carret is not in an inputtable control (therefore copy/paste/cut can't be operated), copy/cut/paste menus are always active as long as there is an open document. Moreover, though the carret is in property window, when you click paste button, the text is always pasted to the main text editor.
Of course, I want my program to behavior like Visual Sutio.NET. I want copy/cut/paste buttons are only activated when there is a child form and the carret is in some inputtable control. I want my program to paste the text into the control the carret is in.
How can I achieve this? Please teach me the concept. Thank you.