c# - Accessing a Parent form button from a Child form button -
i have program has parent form creates child form. upon clicking updatebutton within child form, want searchbutton within parent form fire. however error protection reasons. have tried setting public see, still wont work me. error 1 'salessystem.systemform.searchbutton' inaccessible due protection level salessystem\updateform.cs 111 20 salessystem this have far. parent code namespace salessystem { public partial class systemform : form { public systemform() { initializecomponent(); } protected void searchbutton_click(object sender, eventargs e) { //search code } private void updatebutton_click(object sender, eventargs e) { try { updateform upform = new updateform(resultbox.selecteditems[0].text, dbdirec, dbfname); upform.showdialog(this); } catch (exception)