A
auldh
hello,
as i work through upgrading and converting some old VB application to C#.
i'm finding that i need to add threading. i'm using backgroundworker as the
method to do so.
i'm running into and issue where i was attempting to do windows form button
updates like enable, disable and text.
i'm using multiple class.cs files to make the code better to manage but i
ran into issues where i can get the code to update the buttons states and
text but they don't appear to display the changes.
and it became a nightmare to debug the project would hit the breakpoint and
go dead. anyway the problem i want to get help on is this:
what is the best method/process to manage button state changes and text
updates while using "backgroundworker"? how can i get them to do .refresh()
like?
do i use the "progresschanged" or "invoke" method.
and any good to great reference books, authors to lean about threading and
backgroundworker threading?
thanks in advance for any help.
as i work through upgrading and converting some old VB application to C#.
i'm finding that i need to add threading. i'm using backgroundworker as the
method to do so.
i'm running into and issue where i was attempting to do windows form button
updates like enable, disable and text.
i'm using multiple class.cs files to make the code better to manage but i
ran into issues where i can get the code to update the buttons states and
text but they don't appear to display the changes.
and it became a nightmare to debug the project would hit the breakpoint and
go dead. anyway the problem i want to get help on is this:
what is the best method/process to manage button state changes and text
updates while using "backgroundworker"? how can i get them to do .refresh()
like?
do i use the "progresschanged" or "invoke" method.
and any good to great reference books, authors to lean about threading and
backgroundworker threading?
thanks in advance for any help.