473,771 Members | 2,347 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2024
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.c om...
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
7599
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
10140
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 new TreeView with the same nodes ;) So I would like to keep the expanding state of the first Tree for the second one on the next page. At least the last selected node (path will be saved in query string) should be expanded.
13
9063
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 path "Users\Administrators\John Doe"? Thank you in advance! Andre Nogueira
12
587
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
1401
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. I coded a test project with a form with a TreeView and an ImageList control. /// Me.TreeView = Me.ImageList
1
2460
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 when it comes to site build. So is there a way I could have the following html be rendered from the treeview control? <div class="rightNavHighlight"><a href="#">Ergonomics</a></div> <div class="rightNavHighlight"><a href="#">Environmental
0
12792
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 TreeView is defined to has depth =3 only.
0
2169
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 folder, and this problem began when I added the functionality to have a ghost image of the folder when it is dragged and dropped to another location in the treeview. My code to create the ghost image is as follows: this.NodeToBeDeleted =...
1
2565
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 how can I make users to OPEN or DOWNLOAD these files. rightnow throuh this code only the name of the file is displayed in DataList, I want them to open in their respective programs & be downloaded as well. Thanks. PictureTree is my TREEVIEW & ...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10102
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9910
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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 we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.