简体   繁体   English

C#屏幕古吉拉特语键盘

[英]onscreen gujarati keyboard in C#

i am creating desktop application like Gujarati To English Dictionary in C#. 我正在使用C#创建像古吉拉特语到英语词典这样的桌面应用程序。
For that i need onscreen Gujarati keyboard to display. 为此,我需要在屏幕上显示古吉拉特语键盘。
How to solve this..? 如何解决这个..? any help is appreciated. 任何帮助表示赞赏。
Thank you all. 谢谢你们。

A very simple approach to start with: 一个非常简单的方法开始于:

  1. Create and arange the keyboard buttons on your form 在表单上创建并排列键盘按钮
  2. Create a TextBox, displaying the user input 创建一个文本框,显示用户输入
  3. Add the gujarati letters to the buttons ( Text property) 将古吉拉特语字母添加到按钮( Text属性)
  4. Create an event handler routine for the click event (see below) 为click事件创建事件处理程序例程(请参见下文)
  5. Register this routine to the Click event of each of your buttons 将此例程注册到每个按钮的Click事件

Something like this: 像这样:

private TextBox userInputBox;

private void OnButtonClick(Object sender, EventArgs args)
{
    Button button = sender as Button;
    userInputBox.Text += button.Text;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM