c# - How to Add MenuStrip and DataGridView in Parent Form on Button_Click in Child Form -
i'm student of c# , doing windows form application using in visual studio 2012. problem have is.
i have parent form menustrip = file, sub item login , on login item click child form loads can enter login details. problem i'm having when click login click button on child form need
add menustrip name "add", sub items names "edit","copy"; add datagridview;
to parent form, can give me step in right direction please
from understanding go 2 different ways.
first use dialogresult received childforum.showdialog(this); can set in child form's closing event. (if don't need data child form) similar how results messagebox.show();
second trigger event main form listening sets data when received. (if need pass data between two) - simple custom event
Comments
Post a Comment