473,320 Members | 1,976 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.

How to make TreeNode appear selected

Platform: C# Windows Application/Framework 1.1
----------------------------------------------------

I am implementing Drag' Drop between 2 trees.

Now when I initiate drag and "DragOver" the other tree, I want the nodes on
which I move my mouse to get selected to show where I am going to drop.

I am able to get the TreeNode using mouse coordinates, and when I say
node.TreeView.SelectedNode = node; then I get all the relevent events etc.

But the TreeNode does not appear selected (highlighted in reverse video)
till I click on a node.

Can someone tell me how to achieve that?

Cheers,

Manish
Nov 16 '05 #1
3 7587
Hi

Becasue the tree you want to drop items looses focus you can not see the selection just set HideSelection property to tru

Regards

Dincer Uyav
Nov 16 '05 #2
Funny that you should post this today... i'm actually looking at the
same problem.

Hottracking doesn't seem to work when a node is being dragged...
unless i'm missing something.

Anyone have any suggestions?... my drag drop works perfectly, but i
just need to highlight the nodes while the mouseovers are occuring.

SN

"Manish Jain" <ma******@hotmail.com> wrote in message news:<OF**************@TK2MSFTNGP12.phx.gbl>...
Platform: C# Windows Application/Framework 1.1
----------------------------------------------------

I am implementing Drag' Drop between 2 trees.

Now when I initiate drag and "DragOver" the other tree, I want the nodes on
which I move my mouse to get selected to show where I am going to drop.

I am able to get the TreeNode using mouse coordinates, and when I say
node.TreeView.SelectedNode = node; then I get all the relevent events etc.

But the TreeNode does not appear selected (highlighted in reverse video)
till I click on a node.

Can someone tell me how to achieve that?

Cheers,

Manish

Nov 16 '05 #3
Just set HideSelection = false for the TreeViews.

"sho_nuff" <sh*********@yahoo.com> wrote in message
news:49**************************@posting.google.c om...
Funny that you should post this today... i'm actually looking at the
same problem.

Hottracking doesn't seem to work when a node is being dragged...
unless i'm missing something.

Anyone have any suggestions?... my drag drop works perfectly, but i
just need to highlight the nodes while the mouseovers are occuring.

SN

"Manish Jain" <ma******@hotmail.com> wrote in message

news:<OF**************@TK2MSFTNGP12.phx.gbl>...
Platform: C# Windows Application/Framework 1.1
----------------------------------------------------

I am implementing Drag' Drop between 2 trees.

Now when I initiate drag and "DragOver" the other tree, I want the nodes on which I move my mouse to get selected to show where I am going to drop.

I am able to get the TreeNode using mouse coordinates, and when I say
node.TreeView.SelectedNode = node; then I get all the relevent events etc.
But the TreeNode does not appear selected (highlighted in reverse video)
till I click on a node.

Can someone tell me how to achieve that?

Cheers,

Manish

Nov 16 '05 #4

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

Similar topics

0
by: Sean | last post by:
Hi, I am doing a desktop application and now I am having problem preventing the quick highlight of a treenode when a user right clicks a treenode. The reason I am doing this is that only when...
2
by: Sean | last post by:
Hi, I have a treeview and user can right click the treenodes, depending on the nodes, different shortcut menu will appear. I want only the shortcut menu to appear if the point of the right...
9
by: Mark Allison | last post by:
Hi there, I'm still very much a newbie to C#, and would like to derive from TreeNode to extend the TreeNode class. Here's test program: http://www.vkarlsen.no/pastebin/default.asp?id=4090 I...
3
by: Matthew Woods | last post by:
Hi, does anyone know how to select a treenode with the first click? the first click on a treeview will highlight the node under the mouse when it was clicked BUT that node isn't actually selected...
11
by: Mano | last post by:
When settiing a TreeNode to bold the text label of that node is clipped. As describedin in the Bug Rebort FDBK16963 I set the underliying TreeView Fond to be bold. Now I have the strange...
3
by: tanya foster | last post by:
Hello, I am re-writing a visual basic .net application(visual studio 2003) in an asp.net application(visual studio 2005). The vb.net application relied on a treeview and hence, treenodes. The...
2
by: andreas | last post by:
Hi, I have a problem with treenode I know the node.text of a selected node in a variable and then some nodes are removed but not the selected node who is no more selected (so using index and...
9
by: vincent90152900 | last post by:
How to pop up different text base on the selected TreeNode? I want to pop up different Text base on the selected TreeNode of the TreeView component. So, I create a TreeView and a ModalPopupExtender....
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
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...
1
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...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.