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
Zeb Muhammad
NA
67
18k
putting data with A+ctri key.
Aug 30 2017 1:31 AM
Dear Friends, please check my code, I want to update data with pressing A+ctrl ... but it does not work? code is below...
protected
override
void
OnKeyDown(KeyEventArgs e)
{
base
.OnKeyDown(e);
if
(e.KeyCode==Keys.A && e.Control)
{
try
{
scb =
new
SqlCommandBuilder(da);
da.Update(dt);
MessageBox.Show(
"Recode updated"
,
"Update"
, MessageBoxButtons.OK, MessageBoxIcon.Information);
Form2 f1 =
new
Form2();
f1.Show();
//this.Close();
}
catch
(Exception ex)
{
MessageBox.Show(ex.Message,
"Error"
, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
Reply
Answers (
3
)
.NET code in plugin
multiple images upload