|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to pass a form control to a class for updatingOk, here's the scenario:
I have a form with a status bar on it. I have a class that does a LOT of processing. I want to update the status bar text property periodically from within the class by passing a reference of the status bar to the class. In VB6 this is pretty straightforward, but I just can't seem to get it figured out in vb.net. Should I be trying to do it this way in .net or what? Can anyone help me? timc_fla wrote:
> Ok, here's the scenario: If you want to have the UI update while doing a cpu intensive job you > > I have a form with a status bar on it. > I have a class that does a LOT of processing. > I want to update the status bar text property periodically from within the > class by passing a reference of the status bar to the class. > > In VB6 this is pretty straightforward, but I just can't seem to get it > figured out in vb.net. > Should I be trying to do it this way in .net or what? > > Can anyone help me? should launch the job in a worker thread. You can then use a delegate to update your status bar. http://abstractvb.com/code.asp?A=1027 Chris Chris wrote:
>> Ok, here's the scenario: Cool!>> >[quoted text clipped - 8 lines] >> >> Can anyone help me? > >If you want to have the UI update while doing a cpu intensive job you >should launch the job in a worker thread. You can then use a delegate >to update your status bar. > >http://abstractvb.com/code.asp?A=1027 > >Chris It's not really a CPU intesive job but SQL intensive. Get records, processing them and outputting a text file, bascially. I want to provide some sort of feedback so the user knows the app is working. So, if I understand the example correctly, it appears that class Counter will be my class and everything else should fall into place with a few simple changes?
Error: Login failed for user ????
How to retrive Outlook 2003 style gradient color schemes? Printing the contents of a textbox Copy List(Of type) to another List(Of type) Example of encryption Accessing Properties within a Panel Inheritance Base Class Method to use Shadow'ed member variable of Derived Class? Reading a Webpage Source with Cyrillic Characters Serialization of Object Graph (Inheriting ArrayList) |
|||||||||||||||||||||||