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!

Exe hangs when clicking a treeview node but not at designtime

Status
Not open for further replies.

mromill

Technical User
Oct 11, 2003
7
NL
I have added a MS Form 2.0 to my VB6-project. It contains a treeview control on the left side of my form. Clicking a node fires code to refresh data from the selected node on the right side of the form (update labels, combobox etc.) When i'm in the developmode this works fine but when i execute the compiled program it crashes at the moment the code reaches the point where it changes the labels, combobox. What can i do to prevent my app from crashing?

Thanks,

John
 
yes i do. It doesn't fire the error handling. I tried to execute the same code via a button in stead of the treeview and the result is the same (crash)
 
It sounds like you are using the MS Word version.

Distribution Note The ListView control is part of a group of ActiveX controls that are found in the MSCOMCTL.OCX file. To use the ListView control in your application, you must add the MSCOMCTL.OCX file to the project. When distributing your application, install the MSCOMCTL.OCX file in the user's Microsoft Windows System or System32 directory. For more information on how to add an ActiveX control to a Visual Basic project, see the Visual Basic Programmer's Guide.

-David
2006 Microsoft Valueable Professional (MVP)
 
Hi David,

yes, i've added this library my project (btw, it's a treeview, but that doens't mind). I made a new VB-project to reproduce the same steps but in that case it didn't crash. In my project the data is stored in and retrieved from a class (collection). Could it be a memory problem??
 
i would let you know that i solved the problem by reprogramming the 'stuf'. It appears that a treeview in combination with ms (office) forms 2.0 can do strange things. So i don't use ms (designer)forms in a vb-project anymore.

Thanks for your suggestions.

best regards,

John

connected by The Professionals...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top