473,383 Members | 1,813 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,383 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 2003
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...
1
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.