开发者

Pass message from DLL to GUI

开发者 https://www.devze.com 2023-03-06 08:24 出处:网络
I have created an application which consists of 3 Layers: GUI-BLL-DLL. When 开发者_如何学PythonI am loading a flat file I am doing this in the DLL but I want to show to the user the process through a

I have created an application which consists of 3 Layers: GUI-BLL-DLL. When 开发者_如何学PythonI am loading a flat file I am doing this in the DLL but I want to show to the user the process through a progress bar in the GUI. So I want to pass the variable LineCounts from the DLL to GUI. I know that I have to use EVENTS, but how. Can someone help me to understant how to implement this event in VB.NET with code example?

Thanks in advance Elias


I suggest you look into using a BackgroundWorker. I presume you'll want to use a background thread to import the text file, and report progress intermittently: http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号