0
Does anyone knows the problem of this code ?
It shows error " the com object is separated from its underlying rcw cannot be used https://code.sololearn.com/cSSwiN6lu0Q6/?ref=app
2 Respostas
0
In your button1_Click function, in the first line you have closed a connection without opening one; I think your error is related to that. I understand you may have opened it somewhere else in the full code but you have to keep them in the same function or at least in the same section where the conn.Open command exists.
EDIT: I'm assuming this isn't your full code, because you also haven't initialised any of your variables (e.g. you cannot just say Comm1 you have to type out what Comm1 is - parameter Comm1 = new Parameter() etc)
0
Thanks friend
My problem is solved 😊😊