Solved

Old VB6 app - Treeview_NodeClick no longer fires

Posted on 2013-12-17
4
248 Views
Last Modified: 2013-12-23
I have an old VB6 app that we use to publish sections of our website. It is used 10 times a day and was written back in the 90's (and updated along the way although I haven't made a change to it since before 2010.

Today, we're migrating one of our servers and this app has decided to quit responding to the nodeclick event of a common treeview control. Yesterday it worked. Today it doesn't. Disaster!

I have loaded the app up under the VB6 IDE and cannot for the life of me figure out why the nodeclick event is no longer firing.

Can anyone suggest what might be wrong? Has MS released an update to their common controls?

Thanks
0
Comment
Question by:ou81aswell
  • 3
4 Comments
 
LVL 29

Assisted Solution

by:Paul Jackson
Paul Jackson earned 499 total points
ID: 39726550
What were you migrating the server from/to ?
Does the App run on the server that was being migrated?
0
 

Author Comment

by:ou81aswell
ID: 39727411
Sorry, but the server migration is only related in that we need to use the program with the treeview to upload stuff to the new server and the treeview decided to stop responding to node clicks on the very day we needed it.

The program with the treeview is a Windows .exe written in good old VB6

I suspect I may have installed something recently that uses the same 3'rd party library as we do, but a different version so there may be a classic dll conflict involved but I'm going to have to investigate further.
0
 

Accepted Solution

by:
ou81aswell earned 0 total points
ID: 39728193
Happy Ending - Problem Solved

It turns out that the treeview will not generate a nodeclick event if the x or y components of the current screen coordinates are less than zero. We had our app up on a machine with 3 screens and the left hand screen, on which our app was running, had x coordinates running from -1920 to -1.

We moved the app such that its coords were positive and the program behaved as expected.

Duh!
0
 

Author Closing Comment

by:ou81aswell
ID: 39735724
I stumbled across the answer myself.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now