joaquim
Apr 22nd, 2011, 04:39 PM
i don't know why, but these code works fine in a module(Standard exe project):
.............
MsgBox Screen.ActiveForm.Controls(1).Name
............
error message:
"run-time error '91':
object variable or with block variable not set"
but using these module in Activex project.... my vb6 is blocked. and for close it i must use ctrl+alt+del(combined keys).
it's strange these code is only for read and i have 100% sure that is correct.
can anyone tell me why these stupid error?
.............
MsgBox Screen.ActiveForm.Controls(1).Name
............
error message:
"run-time error '91':
object variable or with block variable not set"
but using these module in Activex project.... my vb6 is blocked. and for close it i must use ctrl+alt+del(combined keys).
it's strange these code is only for read and i have 100% sure that is correct.
can anyone tell me why these stupid error?