how to write the code for one form properties is calling to all form
//coding on keyboard control properties
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace EBilling
{
public partial class frmKeyBoardControl : Form
{
// public static string KeyBoardPosition;
public TextBox textbox;
public frmKeyBoardControl keyboardControlDetails;
//public EmployeeDetails employeedetails;
public frmKeyBoardControl()
{
InitializeComponent();
}
public void CallkeyPressEvent()
{
//keyboardcontrol1_UserKeyPressed+= new KeyEventArgs(k)
//List.Changed += new EventHandler(ListChanged);
//keyboardcontrol1_UserKeyPressed += new KeyEventArgs(keyboardcontrol1_KeyPress );
//keyboardcontrol1_UserKeyPressed+= new key
//keyboardcontrol1_UserKeyPressed += new key
}
private void keyboardcontrol1_UserKeyPressed(object sender, KeyboardClassLibrary.KeyboardEventArgs e)
{
SendKeys.Send(e.KeyboardKeyPressed);
}
private void keyboardcontrol1_Load(object sender, EventArgs e)
{
}
private void keyboardcontrol1_KeyPress(object sender, KeyPressEventArgs e)
{
//KeyBoardPosition = ;
}
}
}
//calling keyboard control form
private void txtGodownArea_Enter(object sender, EventArgs e)
{
frmKeyBoardControl obj = new frmKeyBoardControl();
obj.Show();
//List.Changed += new EventHandler(ListChanged);
//txtGodownArea.Text = obj.KeyPress+=new KeyPressEventHandler(obj_KeyPress);
//txtGodownArea.Text = obj.CallkeyPressEvent();
//b2.Click += new RoutedEventHandler(Onb2Click);
//txtGodownArea.Text = obj.KeyPress + = new
}
Loading
Replies
Know the answer? Post it — somebody with the same question will find it here.