Solved

Treeview and Imagelist using vbscript...?

Posted on 1998-09-07
4
681 Views
Last Modified: 2012-05-04
Hello,

I'm having trouble getting a treeview control to accept an image from an imagelist.  The treeview is working fine with manuel adding parent and children nodes.  But as soon as I add the following:

Set TreeForm.Tree.ImageList = ImageList1
TreeForm.Tree.Nodes.Add , , "Mgt", "Management", 1

Inetdev will crash.  I have also tried it with IE4, and it also will crash.  I assume there is something different I need to do to set the imagelist for access.

NOTE: OS is NT4 workstation and Inetdev 1.0
0
Comment
Question by:westbergk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
javaman17 earned 100 total points
ID: 1837419
<HTML>
<body bgColor='white'>


<center>

<h3>This site runs JavaScript&#174;. </h3>


<p>
<br>
<br>
You should not stop your browser while loading this page,
a tree structure will be built in this left frame in a few seconds. <br>
(If not, click <a href="compatibility.htm">here</a>.)
<br><br><br><br>
<br>
<font size=-1>Loading auxiliary bitmaps:<br>
<img src='closedfolder.gif'><img src='openfolder.gif'><img src='node.gif'>
<img src='lastnode.gif'><img src='vertline.gif'>
<img src='blank.gif'><img src='doc.gif'><img src='link.gif'>
<br>

</center>
</HTML>


0
 
LVL 1

Author Comment

by:westbergk
ID: 1837420
Javaman17,

I see that the <img src='pic.gif'> could retrieve the image from the server, but how would it be placed in the imagelist so that the treeview could use it...
0
 
LVL 2

Expert Comment

by:orbitaltech
ID: 2630054
what the hell is that, Javaman17???

That has nothing to do with VBScript and the Imagelist control.. Get your head on straight.. I don't know why he gave you the points... Moron


0
 
ID: 2741849
So now we all know how to use the <img> tag. Now how about answering the ruddy question Javaman17? The nearest I have come is the sample on MSDN Q165674. But this fails when you try to get the Picture property of the picture control with an invalid property error.
ie. Set imgX = ImageList1.ListImages.Add(1,"open",Image1.picture) The only way that will work is: ImageList1.ListImages.Add 1,"open",LoadPicture("\\Myshare\folderopen.gif")
But this is only good on an intranet with a shared folder.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question