Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to open the soft keyboard in C #

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to open the soft keyboard of C#, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.

Note: the program is in VS2005, pay attention. Control needs to be added on its own. A ComboBox, a Textbox, a Button, dragged directly into it without changing the name

Open the soft keyboard program with C# to start

Using System

Using System.Collections.Generic

Using System.ComponentModel

Using System.Data

Using System.Drawing

Using System.Text

Using System.Windows.Forms

Using System.Runtime.InteropServices

Namespace InputLanguageSwitch

{

/ / /

/ / get all the input methods of the system, and can programmatically change the current input method; open and close the soft keyboard.

/ / procedure: tenant

/ QQ:83849123

/ Blog: http://www.cnblogs.com/sxlfybb

/ / /

Public partial class Form1: Form

{

Public Form1 ()

{

InitializeComponent ()

This.InputLanguageChanged + = new InputLanguageChangedEventHandler

(Form1_InputLanguageChanged)

}

Void Form1_InputLanguageChanged (object sender, InputLanguageChangedEventArgs e)

{

/ / throw new Exception ("The method or operation is not implemented.")

For (int iTuno Bandi)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report