Files
VS_HCI/WindowsFormsPopupKeyboard/WindowsFormsApplication3/keyboard.cs
2024-02-23 11:27:55 +00:00

36 lines
756 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsPopupKeyboard
{
public partial class Keyboard : Form
{
TextBox tt;
public Keyboard()
{
InitializeComponent();
this.TopMost = true; // make the keyboard always in front of the other forms
}
public void setTextBoxForOutput(TextBox t)
{
tt = t; //
}
private void button_Click(object sender, EventArgs e)
{
tt.Text += ((Button)sender).Text;
}
}
}