473,472 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trouble with TreeView

I am loading data from a XML file and populating a TreeVew. I store
certain values in the tags of the treevew nodes using the following
code

--------------------
Dim servernode As New System.Windows.Forms.TreeNode()

servernode.Text = NodtTemplate.Attributes(0).InnerText
servernode.Tag = NodtTemplate.FirstChild.InnerXml
--------------------

When user double clicks on a node, I show the value from tag to the
user. It works perfectly first time. But when the XML file is modified
and reloaded in the TreeView it does not show the modified value when I
double click on the node. To see the modified value I have to exit the
application and re-start it again.

I verified just before assigning the modified values to the tag of the
node but when I double click on the node is show the value it loaded
for the first time.

Is there any cacheing there from TreeViews. Can this be disabled?

My code in Mouse Down event
-------------------------------
tvMDI.SelectedNode = tvMDI.GetNodeAt(e.X, e.Y)
-------------------------------

My code in double click event
-------------------------------
MsgBox(tvMDI.SelectedNode.Tag)
------------------------------

Thanks in advance.

Samir

Nov 21 '05 #1
0 889

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

Similar topics

0
by: TomSt | last post by:
Hello, I'm trying to set the ForeColor property on a Menu and and a TreeView using ASP.Net 2.0 and VisualStudio 2005 Beta. This is a VB.Net app Here are the code snippet: ...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
1
by: brad langhorst | last post by:
I'm going over a result set and adding results as levels on the tree control. when stepping through the code i see execution switch to the calling subroutine as soon as the parentnode.nodes.add...
6
by: L.M | last post by:
Hello, I knew how to use the treeview under VB6. After migrating to .NET, well, I'm lost. I try to add a new node, either to the same level or as a child to a selected node in the treeview....
14
by: Mr.D | last post by:
How do I save/load the contents of a Treeview to a file? I have found several good examples written i VB6, but not a single one for VB.NET. Please help. ---- Tim
1
by: Tomaz Canabrava | last post by:
kay, here it`s my problem. i have a TreeView and a WebBroswer, when i choose something on the treeview, the program generates an html, and it is showed on the webbroswer, but the html has links to...
0
by: David | last post by:
Hi, I've been working with TreeView for ASP.NET. I've had several puzzling difficulties with it. For example I can write an application that works fine programmatically adding TreeNode objects to...
8
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the...
1
by: JRSofty | last post by:
Hi everyone, I've gotten myself is bit of a mess where I'm loading a treeview. Basically I initialize the treeview control with a single root node we'll call it root. I do this by using the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.