Threading
-
I have a form with a progressbar and a dynamic graphic control this dynamic control freezes when i run a method in the form. so i run the method as a new thread in a class. the problem is that the value of progress bar should depend to a variable in the method. when i try to assign a value to the progress bar from the thread class I recieve the error message which says: the control is not created within the thread and can not access to its properties. so how can i access to the value property of the progressbar?
A.E.K
-
I have a form with a progressbar and a dynamic graphic control this dynamic control freezes when i run a method in the form. so i run the method as a new thread in a class. the problem is that the value of progress bar should depend to a variable in the method. when i try to assign a value to the progress bar from the thread class I recieve the error message which says: the control is not created within the thread and can not access to its properties. so how can i access to the value property of the progressbar?
A.E.K
what code u r writing?
-
I have a form with a progressbar and a dynamic graphic control this dynamic control freezes when i run a method in the form. so i run the method as a new thread in a class. the problem is that the value of progress bar should depend to a variable in the method. when i try to assign a value to the progress bar from the thread class I recieve the error message which says: the control is not created within the thread and can not access to its properties. so how can i access to the value property of the progressbar?
A.E.K
-
I have a form with a progressbar and a dynamic graphic control this dynamic control freezes when i run a method in the form. so i run the method as a new thread in a class. the problem is that the value of progress bar should depend to a variable in the method. when i try to assign a value to the progress bar from the thread class I recieve the error message which says: the control is not created within the thread and can not access to its properties. so how can i access to the value property of the progressbar?
A.E.K
Look into the BackgroundWorker component. It exposes a standardize method of reporting progress.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Look into the BackgroundWorker component. It exposes a standardize method of reporting progress.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007