Solved

Old VB6 app - Treeview_NodeClick no longer fires

Posted on 2013-12-17
4
254 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

775 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