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
Hardik Patel
NA
378
467.1k
Disable Alt+F4 and Esc in VB.net application
Aug 8 2015 2:24 AM
i am using global function to disable alt+F4 and Esc
Esc is working but alt is not working. pls help
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Escape)
{
MessageBox.Show("sorry you cannot close this form via Esc!!!");
return true;
}
else if (keyData == Keys.Alt)
{
MessageBox.Show("sorry you cannot close this form via Esc!!!");
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
Reply
Answers (
1
)
Count Pairs of Numbers with a Given Difference K
How to insert picture in database using wcf service?