Your basic issue is a combination of cluelessness and illiteracy. I assume, despite you not telling us, that this line is the error:
ehsan6000 wrote:
Me.Invoke(Me.Invoke(New MethodInvoker(AddressOf updatetext, text)))
Why are you calling me.invoke twice ? Is it because
a - this is actually right, me.invoke returns the same thing as AddressOf
b - you get an error after copying code blind off the web, so ask here because you can't use google, can't read, and have no idea what you're doing ( and therefore cannot diagnose the problem ) ?
Oh, your code is still terrible - SQL in the presentation layer, the assumption that a textbox contains an int, etc. What happens if someone types text in to that textbox ?