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
batel hodefi
NA
50
0
KeyPress event with controls in Windows
Dec 5 2009 5:51 PM
I created a Form and put some controls in it like: button, textBox. I tried to connect all the controls to KeyPressEvent, but when it's run the count of the collection is 0. I don't understand why? my code: public Form1() { InitializeComponent(); ControlCollection C = new ControlCollection(this); for (int i = 0; i < C.Count; i++) { C[i].KeyPress += new KeyPressEventHandler(funcionName); } }
Reply
Answers (
15
)
VOIP in C#
Moving Cursor in DirectX Games