473,320 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Treeview NodeClick event not firing

Has anyone had the NodeClick event not firing in VB6 with the VB5
Treeview control?

It fires correctly when using the cursor keys to select nodes but there
is nothing when i click a node.

It only appears to be happening in one project on one PC (regardless of
whether it is compiled or not. Any other pc works, and the test projects
all work but I can't narrow it down to a specific item at fault :(

Thanks

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Dec 21 '05 #1
3 8499
Dean Earley wrote:
Has anyone had the NodeClick event not firing in VB6 with the VB5
Treeview control?

It fires correctly when using the cursor keys to select nodes but there
is nothing when i click a node.

It only appears to be happening in one project on one PC (regardless of
whether it is compiled or not. Any other pc works, and the test projects
all work but I can't narrow it down to a specific item at fault :(


After stripping the project down to its bare bones, I got to the code
that restores the window position/state form the registry.
This happened to position it on the second monitor (-1024,0).

The NodeClick event will NOT fire if the mouse cursor has an x position
(and I assume Y as well) less than 0...

That is another for the list that assumes the screen stops at 0
(sensible assumption on Win9x I admit).

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Dec 21 '05 #2
Dean Earley <de*********@icode.co.uk>'s wild thoughts were
released on Wed, 21 Dec 2005 13:26:24 +0000 bearing the
following fruit:
Dean Earley wrote:
Has anyone had the NodeClick event not firing in VB6 with the VB5
Treeview control?

It fires correctly when using the cursor keys to select nodes but there
is nothing when i click a node.

It only appears to be happening in one project on one PC (regardless of
whether it is compiled or not. Any other pc works, and the test projects
all work but I can't narrow it down to a specific item at fault :(


After stripping the project down to its bare bones, I got to the code
that restores the window position/state form the registry.
This happened to position it on the second monitor (-1024,0).

The NodeClick event will NOT fire if the mouse cursor has an x position
(and I assume Y as well) less than 0...

That is another for the list that assumes the screen stops at 0
(sensible assumption on Win9x I admit).


I don't know the first thing about multiple monitors but I
guess it kinda makes sense, when you minimize a form, it
just moves it off screen, I guess you confused the hell out
of it.
Jan Hyde (VB MVP)

--
What do you get when you cross a snowman with a vampire? Frostbite.

Dec 21 '05 #3
Jan Hyde wrote:
Dean Earley <de*********@icode.co.uk>'s wild thoughts were
released on Wed, 21 Dec 2005 13:26:24 +0000 bearing the
following fruit:
Dean Earley wrote:
Has anyone had the NodeClick event not firing in VB6 with the VB5
Treeview control?

It fires correctly when using the cursor keys to select nodes but there
is nothing when i click a node.

It only appears to be happening in one project on one PC (regardless of
whether it is compiled or not. Any other pc works, and the test projects
all work but I can't narrow it down to a specific item at fault :(

After stripping the project down to its bare bones, I got to the code
that restores the window position/state form the registry.
This happened to position it on the second monitor (-1024,0).

The NodeClick event will NOT fire if the mouse cursor has an x position
(and I assume Y as well) less than 0...

That is another for the list that assumes the screen stops at 0
(sensible assumption on Win9x I admit).


I don't know the first thing about multiple monitors but I
guess it kinda makes sense, when you minimize a form, it
just moves it off screen, I guess you confused the hell out
of it.


Minimized is still on the screen, and this was maximised on the monitor
to the left of the primary. The window was at -1024,0 to 0,768 thus any
"click" on the node had an absolute cursor position less than 0 and it
got confused and failed to fire the event.

Seeing as multi monitor support was added in 98, there is still a lot of
apps that fail on odd layouts.

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Dec 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Plumer | last post by:
Hello everyone, Yesterday I posted a message about implementing drag & drop in a TreeView control. I'm having real difficulty getting this to work -- the process seems to be incredibly...
7
by: (Pete Cresswell) | last post by:
I've got KeyDown coding and it fires when other keys are pressed, but when Enter is pressed, nothing. I'd like to support the (standard?) Windows behavior of executing DblClick processing when...
0
by: marian | last post by:
Hi I have changed the control in my form to a Treeview 6 instead of 5 and my code no longer works as before. Can anybody help me here. There are no errors, but I only end up with the first...
1
by: Srinivasa Raghavan | last post by:
Hi All, I have some doubts on the Treeview control and Form Authentication 1) will Form Authentication work if cookies are disabled. 2) I have problem in the following code (TreeView...
17
by: Spam Trap | last post by:
I am upgrading from VB6 where I had access to a treeview NodeClick event (see below)... but now VB.NET does not have this any more. Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)...
6
by: rob willaar | last post by:
I seem to miss then treeview NodeClick How can i check if a node is clicked when it is selected?
0
by: Athan | last post by:
I use MS activex treeview control in my asp pages. The problem I have is that some computers display the treeview with no problems while others display the control without the text on the nodes. I...
1
by: mongphong28 | last post by:
Hi, I'm using a treeview as a menu, and when the user clicks on a node I want the focus to set to a control (ie textbox) in a panel to the right. The problem I'm having is the focus will not...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.