Solved

Old VB6 app - Treeview_NodeClick no longer fires

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

18 Experts available now in Live!

Get 1:1 Help Now