Ejemplo n.º 1
0
        private void btnTo_Click(object sender, System.EventArgs e)
        {
            // Pop open the "typing" form to collect keyboard input to get a valid code
            Dialog_KeyPress dlg = new Dialog_KeyPress(m_hashKeys);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (lbTo.Items.Contains(dlg.Selected))
                {
                    lbTo.SelectedItem = dlg.Selected;
                }
                else
                {
                    // probably an international keyboard code
                    MessageBox.Show("You've entered a key that SharpKeys doesn't know about.\n\nPlease check the SharpKeys website for an updated release", "SharpKeys");
                }
            }
        }
Ejemplo n.º 2
0
        private void btnTo_Click(object sender, System.EventArgs e)
        {
            // Pop open the "typing" form to collect keyboard input to get a valid code
            Dialog_KeyPress dlg = new Dialog_KeyPress();

            dlg.m_hashKeys = m_hashKeys;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (lbTo.Items.Contains(dlg.m_strSelected))
                {
                    lbTo.SelectedItem = dlg.m_strSelected;
                }
                else
                {
                    // probably an international keyboard code
                    MessageBox.Show("알 수 없는 키가 입력되었습니다.", "");
                }
            }
        }