Shani

Shani

  • NA
  • 116
  • 62.6k

on click event

Mar 4 2009 3:41 PM

hi there,

i have the following on click button

private void buttonA_Click(object sender, EventArgs e)

{

if (something.Enabled == true)

{

// do something

}

else

{

// do something

}

}

 

now i want to call this button from another button that i created

private void buttonB_Click(object sender, EventArgs e)

{

buttonA_Click();

}

i get an error 'Error 1 No overload for method buttonA_Click' takes '0' arguments...

please help!

 


Answers (6)