SEB BEC

SEB BEC

  • 1.6k
  • 83
  • 1.2k

invoke a f=button in form from a usercontrol

Jul 14 2017 1:23 AM

I have a form that contains a listbox and a button(mainButton) then added a usercontrol. In the usercontrol I added a button (scButton).

I like to click on scButton and invoke mainButton. Basically run the code that is in the mainButton.

I have been searching the web but no luck.

Just a side note: the application that I am trying to get this to work does not have a Form1.Designers.cs file for some reason (may be old app that was converted to VS2013) but it has been working fine without it.