c# - Notify WinForm when a load process has ended -


i'm developing winforms app vs 2012, c# , .net framework 4.5.

i have mainform (winform) class , class connects database load data using database stored procedure.

i have list<string> data; , need notify mainform when load process has ended don't know how it.

i've thought use delegate objective-c i'm not sure if can that.

how can notify mainform when load process has ended?

var bw = new backgroundworker(); bw.dowork += (sender, args) => getdatefromdatabase(); bw.runworkercompleted += (sender, args) => notifymainform(); bw.runworkerasync(); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -