
Object variable or with block variable not set
Quote:
>> I have a project that creates an executable with one form (MainForm)
>> that uses a user control (MainControl.ocx) to do all the work. "Run
>> with full Compile" launches the executable. When I load MainForm in
>> the designer, the user control is loaded correctly. I can File | Make
>> MainControl.ocx with no errors. However, when I try to make the
>> executable, I receive the "Object variable or with block variable not
>> set" error.
>> The error occurs even if I remove all of the code of MainForm. This
>> step used to work. I have to assume that I made some change to my
>> project to cause the error. However, I have no information to guide
>> me in my search. How can I debug this problem?
>Have you tried adding the project for MainControl.ocx to the same
>project group as your executable?
One thing to think about...
If this is a one of a kind OCX, ie: won't be used in other projects you can
add it to the project as code and compile it all together,
NO OCX to play with, distribute, etc..
Food for thought... ;P
Have a good day...
Don