TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
naga jyothi
NA
62
110.5k
keyboardcontrol form is accessing an other form then i click on keyboard keys in keyboardcontrols that key value should be reflected in another form
Sep 4 2012 11:53 PM
first form is executed then its navigate another form then its working both two forms my problem is to mouse click on firstform the second form should be minimize (not minimize and maximize the navigation form to click mouse button on form1
keyboard Control form
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 frmKeyBoardControl keyboardControlDetails;
public frmKeyBoardControl()
{
InitializeComponent();
}
private void keyboardcontrol1_UserKeyPressed(object sender, KeyboardClassLibrary.KeyboardEventArgs e)
{
SendKeys.Send(e.KeyboardKeyPressed);
}
public void controlDetails()
{
//keyboardcontrol1_UserKeyPressed += new KeyEventArgs(keyboardcontrol1_UserKeyPressed);
}
public void keypressEvent()
{
keyboardcontrol1.UserKeyPressed +=new KeyboardClassLibrary.KeyboardDelegate(keyboardcontrol1_UserKeyPressed);
}
private void keyboardcontrol1_MouseLeave(object sender, EventArgs e)
{
}
private void frmKeyBoardControl_Activated(object sender, EventArgs e)
{
}
}
}
//another form
private void txtGodownArea_Enter(object sender, EventArgs e)
{
Cursor.Hide();
Cursor.Show();
frmKeyBoardControl obj = new frmKeyBoardControl();
obj.Show();
obj.controlDetails();
//obj.keyboardControlDetails.k
}
Reply
Answers (
0
)
Value vs. Reference
Different between ASP .NET and C Sharp security