Thursday, July 19, 2012 7:37 AM
Having added a word.quit event as outlined above, I cannot seem to get any code to work in it i.e.
oWord = nothing
Cross-thread operation not valid: Control 'Label1' accessed from a thread other than the thread it was created on.
How should code be written to execute after word quits ? Thank you
Thursday, July 19, 2012 5:03 PM
In the event handler:
BeginInvoke(New action(AddressOf SetLabelDone))
And add this sub to the Form:
Private Sub SetLabelDone() Label1.Text = "Done" End Sub
- Marked As Answer by GFSIan Thursday, July 19, 2012 5:43 PM
Thursday, July 19, 2012 5:44 PMExcellent - That's it - Thank you