RE: How to enable IME on a custom UserControl?
- From: Blue <blue@xxxxxxxxxxxxxxxx>
- Date: Thu, 16 Nov 2006 06:51:02 -0800
Hi Linda,
We don’t put any child controls on the user control. This is a “word
processing” like control we built ourselves. We catch events like key press
and draw the text ourselves.
We want to do something similar with text entered via the IME. I think (at
least I hope) we should be able to catch the events from IME and then draw
them in our user control. However, before we can do that we first need to
get the IME turn on when my control has focus.
"Linda Liu [MSFT]" wrote:
Hi Blue,.
I performed a test based on your description and saw the same thing as you
did.
I create a Windows application project and add a UserControl into the
project (I don't add any control on the custom UserControl). Build the
project and drag my custom UserControl from Toolbox on the form. I also
add a textbox on the form. Build the program again and run it.
When I put the focus in the textbox, several buttons for the specified
language appear on the language bar. When I click on the usercontrol, these
buttons for the specified language are disabled.
I think this makes sense. Since there isn't any child control on my
usercontrol, I couldn't input any text into my usercontrol. The behavior of
those specific buttons being disabled at this time is reasonable. If I add
a textbox on the UserControl, the textbox gets focused when I click on the
usercontrol. In this case, those specified buttons on the language bar are
available.
Could you please tell me what contols you placed on your usercontrol?
I look forward to your reply.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- RE: How to enable IME on a custom UserControl?
- From: Linda Liu [MSFT]
- RE: How to enable IME on a custom UserControl?
- References:
- RE: How to enable IME on a custom UserControl?
- From: Linda Liu [MSFT]
- RE: How to enable IME on a custom UserControl?
- Prev by Date: Re: how does using work?
- Next by Date: Hex values to dec with AND
- Previous by thread: RE: How to enable IME on a custom UserControl?
- Next by thread: RE: How to enable IME on a custom UserControl?
- Index(es):