473,405 Members | 2,261 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,405 software developers and data experts.

TreeView image node displaying if path is accessible

I'm building a treeview from an xml file. The node values point to
various paths, some of which are network paths.

Next to every node I'd like to display an "offline" image (if that the
path is not accessible). I'd like to do this either before or after
the user selects that particular node.

How do I check for a path's status?

Also I've played around with the AfterSelect event combined with
..refresh and .update but I can't get the image to change upon click.
The image only changes when yet another node is selected.

Which is the right way to do this dynamic image changing?

Morten

Nov 21 '05 #1
2 2005
Hi,
You could try pinging the machine:
http://support.microsoft.com/default...b;en-us;828993

--
HTH
-------
Dan Artuso, MVP
"Han Sen" <ha*@sen.se> wrote in message news:bu********************************@4ax.com...
I'm building a treeview from an xml file. The node values point to
various paths, some of which are network paths.

Next to every node I'd like to display an "offline" image (if that the
path is not accessible). I'd like to do this either before or after
the user selects that particular node.

How do I check for a path's status?

Also I've played around with the AfterSelect event combined with
.refresh and .update but I can't get the image to change upon click.
The image only changes when yet another node is selected.

Which is the right way to do this dynamic image changing?

Morten

Nov 21 '05 #2
Han Sen wrote:
I'm building a treeview from an xml file. The node values point to
various paths, some of which are network paths.

Next to every node I'd like to display an "offline" image (if that the
path is not accessible). I'd like to do this either before or after
the user selects that particular node.

How do I check for a path's status?

Also I've played around with the AfterSelect event combined with
.refresh and .update but I can't get the image to change upon click.
The image only changes when yet another node is selected.

Which is the right way to do this dynamic image changing?

Morten

Do I have to wait until 11:46 on the 23rd of December 2005 before this
message disappears from the top of the list? AAARRRRGGGHHHH. Why can't
people work out how to set a clock.

And why can't the messages have the time stamp of the server rather than the
client?

--

I'll have a B please Bob.
Nov 21 '05 #3

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

Similar topics

4
by: Ian Powell | last post by:
Hi I've got objects in an sorted ArrayList like: P:\ P:\\DOCS P:\\i386 P:\\i386\ASMS P:\\i386\ASMS\1000 P:\\i386\ASMS\1000\MSFT
4
by: Karim El Jed | last post by:
Hi, I'm trying to expand a special Node of my TreeView from Codebehind. I have a TreeView on a page for navigating to another site. On the other tsite here is the same TreeView more precisely a...
13
by: André Nogueira | last post by:
Hi there. I know you can view a node's fullpath property, but is it posible to select a node using its path? Like, tell the treeview that the node that should be selected is the node with the...
12
by: Bob Hollness | last post by:
Hi. I have a text file containing a list of files and their path. I.e. c:\MyDocs\File1.txt c:\MyDocs\File2.txt c:\MyDocs\File3.txt c:\MyDocs\File4.txt C:\MyDocs\Folder\File1.txt
0
by: Sarika | last post by:
Hi, I am a little confused about associating an image w/ the VB.NET TreeView Control. My specific requirement is that I want to associate an image w/ some specific nodes in the TreeView only. ...
1
by: James Coleman | last post by:
I am using the TreeView control in ASP.NET 2.0 and like it. However, our sitebuilders aren't too pleased with the idea of the table that gets rendered. They are big into avoiding <table> tags...
0
by: jiing | last post by:
Hi all, I want to use sting(the same as Node.Text) to judge if a node exists in TreeView. I've tried several ways, but seems all failed. could anybody help me? Thanks in advance. //My...
0
by: bsturg21 | last post by:
Hello, I have an app that has a custom treeview which inherits the base treeview class and I am having a problem with the way the treeview is being redrawn. Each node in the treeview represents a...
1
by: kashif73 | last post by:
Hi I am pretty new to ASP.NET. I have inserted a Treeview control in my page, which display directory information & all the different files contained in it in a DataList infront of it. My question is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.