36 lines
756 B
C#
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;
|
|
}
|
|
}
|
|
}
|