Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Illegal Operation Problems still happening.

Status
Not open for further replies.

plastic

Programmer
Jul 11, 2002
24
GB
Hey,
I am having trouble with visual basic and illegal operations boxes coming up when i try to "View Object" in an existing project(opened from a save). Also, all the form's properties are blank.
Lightseeker suggested it was a memory problem. If lightseeker or anyone else is out there could they explain a bit more in detail what i should do.
Oh yeah, and thanks lightseeker ,*applauds* :D

Plastic
 
This happened to me once, and in my case, I had the Toolbox closed (the window where you select components). It doesn't happen all the time nor can I tell you why it does what it does. But, if your Toolbox state in the IDE is defaulted to be closed when you open projects, open the VB IDE and remove any project and don't start any New Projects (blank IDE). Open the Toolbox, then close the IDE. Then try your Project again.



Mark
 
It might be a version compatibility problem. Do you have any ocx controlss or dll's that you built included in the project? What exactly is the message and is anything been written to a log file. Can you post these details.

Thanks and Good Luck!

zemp
 
Thanks so much for all your help. i'm new to vb, so could you explain about the IDE, as i feel this might be the problem. I had a problem with the toolbox not appearing, and i had to manually (View>Toolbox)get it to come up. I'm not sure what you mean by IDE, and as for the other post, i cant find any logs or anything, and when i say existing projects im talking about really simple projects that only involve forms(so far).

Thanks in advance

Plastic
 
Normally, when you first open Visual Basic you are presented with an option of creating a New Project, opening an existing project, or browsing and selecting a recent project that you worked on. I say normally because there are options you can set to always directly open a "New Project."

If you click on the Cancel button when first presented these options, you will find yourself with an empty IDE (integrated development environment). Or, if you open with a Project (with forms, modules, etc.) already loaded, then goto the Top Menu and select File, Remove Project. This will leave you with an empty IDE as well.

on the Top Menu, go to View, then Toolbox. This will bring up another window with the common components (textbox, combobox, etc.). Make sure the toolbox is visible, and then close the IDE by the top menu: File, Exit.

This should make the Toolbox visible whenever you load any project, and should stop the Errors (no guarantees...)



Mark
 
Hey,
Seems not to be the toolbar problem, but thanks anyway. Well, I downloaded a warez copy of visual basic(dont panic, just using it as a test) to see if it gave me the same errors, in case my setup was wrong or something. But it also does the same thing, so it must be my PC, which is really frustrating!!! Someone suggested memory problems, but I have should have no RAM or HD memory problems, that is, if you count virtual memory, as my RAM is at 63mb and my virtual memory is way up at 800mb(i run a busy PC). I should honestly think of getting new RAM.
Hmmm, i think this could break a record for the most replies in a thread, but im going off topic.
Thanks EVERYONE for your help.

Oh yeah, one more thing. It doesn't always happen, the existing project with illegal operation errors, i tested it on a project with NO code, and it worked fine.
Another thing, if it helps discover the problem, illegal operation error happens also when i press the Del key to remove an object, instead of right clicking it and selecting delete.

Thanks


Plastic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top