i don't know why, but these code works fine in a module(Standard exe project):
error message:Code:............. MsgBox Screen.ActiveForm.Controls(1).Name ............
"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?



Reply With Quote