dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How to switch Input Method for a TextBox

  1. #1
    Join Date
    Jan 2001
    Location
    Beijing, China
    Posts
    65

    How to switch Input Method for a TextBox

    I want to switch Input Method or even forbidden it for a TextBox.
    I tried to do it by setting the ImeMode property (I am using Japanese OS, I am not sure whether other versions' Windows also use this property) as below. However, it seems that it does not work.

    TextBox1.ImeMode = ImeMode.Off etc.

    Please teach me how to do it. Thank you.

  2. #2
    Join Date
    Oct 2003
    Location
    C/C++,Java,VB.net
    Posts
    43

    An input method editor....

    .......In MSDN.........
    An input method editor (IME) is a program that allows users to enter complex characters and symbols, such as Japanese Kanji characters, using a standard keyboard. The ImeMode property is typically set to ImeMode.Off for a TextBox control that is intended to only enter numeric values.
    An Input Method Editor (IME) allows users to enter and edit Chinese, Japanese, and Korean characters. The IME is an essential component for writing Chinese, Japanese, and Korean scripts. These writing systems have more characters than can be encoded for a regular keyboard. The IMEs for these languages use sequences of base characters that describe an individual character or group of characters to allow you to enter a larger set of characters. Base characters can be component letters from Hangul syllables, phonetic components for Japanese Kanji characters, or various combinations for Chinese characters.

    Members
    Member name Description
    Alpha Alphanumeric single-byte characters(SBC). This setting is valid for Korean and Japanese IME only.
    AlphaFull Alphanumeric double-byte characters. This setting is valid for Korean and Japanese IME only.
    Disable The IME is disabled. With this setting, the users cannot turn the IME on from the keyboard, and the IME floating window is hidden.
    Hangul Hangul SBC. This setting is valid for the Korean IME only.
    HangulFull Hangul DBC. This setting is valid for the Korean IME only.
    Hiragana Hiragana DBC. This setting is valid for the Japanese IME only.
    Inherit Inherits the IME mode of the parent control.
    Katakana Katakana DBC. This setting is valid for the Japanese IME only.
    KatakanaHalf Katakana SBC. This setting is valid for the Japanese IME only.
    NoControl None (Default).
    Off The IME is off. This mode indicates that the IME is off, meaning that the object behaves the same as English entry mode. This setting is valid for Japanese, Simplified Chinese, and Traditional Chinese IME only.
    On The IME is on. This value indicates that the IME is on and characters specific to Chinese or Japanese can be entered. This setting is valid for Japanese, Simplified Chinese, and Traditional Chinese IME only.

    Requirements
    Namespace: System.Windows.Forms

    Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family


    Assembly: System.Windows.Forms (in System.Windows.Forms.dll
    See the requirements.........
    Hope in this help.
    Last edited by vnInformatics; April 20th, 2004 at 03:55 AM.
    If I am on the wrong way, Please give me an outspoken criticism.

    Fortune favours the bold.

  3. #3
    Join Date
    Jan 2001
    Location
    Beijing, China
    Posts
    65

    Yes, but it doesn't work

    I tried to change these IME properties. However, it doesn't work.
    For example I even set to IMEMode.disable, but IME still can be switched to others so that Japanese Kanji character can be input.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)