Hi,
I have got a couple of VB Powerpack Ovalshapes on my Form.
I use these for a quick indication if the networked device is online or offline.
I can't seem to control the Visible function (or any other function for that matter) one my Background Worker is running.
For my Textboxes I used a guide by jmcilhinney which worked great for them but there is no 'Invoke' property for graphics controls.
Current code to update simply reads
When I try and update a property I get..
"Cross-thread operation not valid: Control 'ShapeContainer1' accessed from a thread other than the thread it was created on."
How can I update the propertys of this item?
I have got a couple of VB Powerpack Ovalshapes on my Form.
I use these for a quick indication if the networked device is online or offline.
I can't seem to control the Visible function (or any other function for that matter) one my Background Worker is running.
For my Textboxes I used a guide by jmcilhinney which worked great for them but there is no 'Invoke' property for graphics controls.
Current code to update simply reads
VB.NET:
Me.OfflineImg.Visible = False
When I try and update a property I get..
"Cross-thread operation not valid: Control 'ShapeContainer1' accessed from a thread other than the thread it was created on."
How can I update the propertys of this item?