473,473 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Edit Menu question

I created an edit menu with the standard Cut, Copy and Paste. I then
assigned shortcuts to each menu, CtrlX, CtrlC, etc. However, if I select
some text in a textbox and choose one of these items, it does nothing. Is
that because the textbox lost focus when I clicked the menu? What's the
standard way to get this sort of thing to work with text boxes?

TIA,

Mike Rodriguez
Nov 16 '05 #1
2 1437
Michael,

What is your event handler for those menu items doing? Can you share your
code?

Telmo Sampaio
MCT

"Michael Rodriguez" <mi**@nospamforme.com> wrote in message
news:e0**************@TK2MSFTNGP09.phx.gbl...
I created an edit menu with the standard Cut, Copy and Paste. I then
assigned shortcuts to each menu, CtrlX, CtrlC, etc. However, if I select
some text in a textbox and choose one of these items, it does nothing. Is
that because the textbox lost focus when I clicked the menu? What's the
standard way to get this sort of thing to work with text boxes?

TIA,

Mike Rodriguez

Nov 16 '05 #2
in the pasteText() method, you should be doing
textBox.Text=(String)iData.GetData(DataFormats.Tex t);
"Michael Rodriguez" <mi**@nospamforme.com> wrote in message news:<e0**************@TK2MSFTNGP09.phx.gbl>...
I created an edit menu with the standard Cut, Copy and Paste. I then
assigned shortcuts to each menu, CtrlX, CtrlC, etc. However, if I select
some text in a textbox and choose one of these items, it does nothing. Is
that because the textbox lost focus when I clicked the menu? What's the
standard way to get this sort of thing to work with text boxes?

TIA,

Mike Rodriguez

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Carl Gilbert | last post by:
Hi I have recently been having trouble with the edit items in both the context menu and edit menu in vs.net designer. On the context menu, the only items that are not disabled are 'View code'...
1
by: Bryan Van. | last post by:
Hello, I've had Visual Studio .NET for C# only two weeks now. Today I encounter a big problem with the developer. The edit menu is disabled! Both using the right click of the mouse, the edit menu...
1
by: Michael Rodriguez | last post by:
I created an edit menu with the standard Cut, Copy and Paste. I then assigned shortcuts to each menu, CtrlX, CtrlC, etc. However, if I select some text in a textbox and choose one of these items,...
8
by: Rena | last post by:
Hi all, I am now using VS Net 2003, but i found that i need to restart the web app. once i edit my code. correct me if i remembered wrongly, as I do not need to restart my web app b4 to make my...
5
by: Cecilia Bergengruen | last post by:
2 questions: 1)I inserted a menu in an mdi window form. I right clicked on a menu item and pressed edit names. I therefore edited all my menu item names. Then I right clicked and pressed edit...
6
by: Larry Woods | last post by:
I am trying to name my submenus (MainMenu control) and they show up in the menu dropdown...like they are O.K., but when I check my controls the names are still "MenuItemX". OTOH, the top-level...
9
by: sandrapacino | last post by:
Perhaps a dumb question. I heard one hot features of VB 2005 is the Edit and Continue (while in debug). I was taking a look at a team version at university and tried to import a small vs2003...
1
by: Brian Heibert | last post by:
Can anyone tell me how to create a Edit menu I am new to VB .Net and this news group Thanks, Brian
1
by: ollielaroo | last post by:
Hi guys, Firstly I did do a search for this one first but I couldn't find anything related in this forum. I am using Dreamweaver MX and trying to build admin pages for an ASP site. My problem is...
0
by: anupam roy | last post by:
Hi, I have two editors in my .NET C# application. One is rich text box another is custom layout editor for resource editiing. Now i have configured the main meny edit buttons to work for...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.