herculesvba
New member
- Joined
- Jan 26, 2015
- Messages
- 2
hi guys,
i use a second thread to calculate a value for a textbox placed on the main form.
I use delegate and invoke, which works well as long as i let the complete code in the form code class.
If i generate a new class, and move the code to this class, i get an error that the control handle doesn't exist yet, after starting the second thread.
The textbox is visible and not modified in any way.
What's the difference between starting a thread from a form class or fron a separate class?
Any idea what can causing this issue.?
Any help would be appreciated
Regards Thomas
i use a second thread to calculate a value for a textbox placed on the main form.
I use delegate and invoke, which works well as long as i let the complete code in the form code class.
If i generate a new class, and move the code to this class, i get an error that the control handle doesn't exist yet, after starting the second thread.
The textbox is visible and not modified in any way.
What's the difference between starting a thread from a form class or fron a separate class?
Any idea what can causing this issue.?
Any help would be appreciated
Regards Thomas
Last edited: