본문 바로가기

카테고리 없음

Click Button File C#

Click

Ofstream C++

Hi Folks,I am creating a GUI application and I've come to a situation where I need to check whether a button has been clicked.So logically: -If- the 'button' has been clicked - Do this.As soon as that button is clicked, it should jump to a method which has other commands.I'm of course using Visual Studio 2008 - Visual studio creates pre-made methods for click events whenever you double click on a button in design mode. So at the moment the button method's signature looks like this: private void btAddClick(object sender, EventArgs e)At the moment, i've added something like: if btAddClick = true;Do thisWhich of course throws errors because btAddClick is a method and therefore needs some arguments. Which arguments, I don't know.Please help - Much appreciated.Usmaan.