I am using interaction.AppActivate() method used to run my application?
I am using interaction.AppActivate() method used to run my application.In my application menustrip control is used to run the companyInformation form that is one proceess and another process is keyboard control is used in menustrip form but my probl
string TitleName = "";
private void companyInformationToolStripMenuItem_Click(object sender, EventArgs e)
{
frmOrganizationDetails obj = new frmOrganizationDetails();
TitleName = obj.Text;
obj.ShowDialog();
}
public void keyboardcontrol1_UserKeyPressed(object sender, KeyboardClassLibrary.KeyboardEventArgs e)
{
if (TitleName != string.Empty)
{
Interaction.AppActivate(TitleName);
SendKeys.Send(e.KeyboardKeyPressed);
}
}