aarti
aarti

Reputation: 175

onscreen gujarati keyboard in C#

i am creating desktop application like Gujarati To English Dictionary in C#.
For that i need onscreen Gujarati keyboard to display.
How to solve this..? any help is appreciated.
Thank you all.

Upvotes: 0

Views: 753

Answers (1)

Stephan
Stephan

Reputation: 4247

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)
  4. Create an event handler routine for the click event (see below)
  5. Register this routine to the Click event of each of your buttons

Something like this:

private TextBox userInputBox;

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

Upvotes: 1

Related Questions