Sandallic Posted November 8, 2005 Posted November 8, 2005 Hello, I am having troubles find out if InvokeRequired is true or false. My Console application does not like the following code. If Me.InvokeRequired Then Me.Invoke(New _DisplayMessage(AddressOf DisplayMessage)) Else DisplayMessage() End If "Me" is not valid within a module. What can I do instead? Thanks. Simon Quote
Administrators PlausiblyDamp Posted November 8, 2005 Administrators Posted November 8, 2005 Not too sure what you are trying to do here as the InvokeRequired property is designed to let you know if you are attempting to update a form / controls UI from a thread other than the primary thread - the console isn't a form and shouldn't require this check anyway. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.