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;
- }
- }


Tapan PatelRank #614 · 3.9K reputationPosted Jul 29, 2016, 12:21 PM EDT
Krishna Rajput SinghRank #605 · 4K reputationPosted Jul 29, 2016, 10:22 PM EDT