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
Oyetoke Toby
NA
116
316.3k
How to know when a button is clicked in C#
Jul 29 2016 3:14 PM
Pls I need your help in some cases about button in C#. How can I know when a particular button is clicked. I want to use the if condition statement to write the event. So I want it to do something when particular button is clicked. I want to put all the code inside one function or class then I can call it anytime. For example
private
void
showPanel()
{
if
(dashPanelButton.Clicked ==
true
)
{
dashPanel.Visible =
true
;
}
else
if
(studInfoBtn.Clicked ==
true
)
{
studInfoPanel.Visible =
true
;
}
else
{
homePanel.Visible =
true;
}
}
Note the above code is just an assumption not really a working code. Just using it to explain myself
Reply
Answers (
2
)
Entity Framework Use image upload for data acess layer
How to find 3 level of OT in payroll