Solved

Treeview and Imagelist using vbscript...?

Posted on 1998-09-07
4
678 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Html split(text) 2 48
.CSS HTML Help 3 57
Can't get video to center on page 2 45
Inserting HTML Code on Wordpress Homepage for Affiliate Marketing Tracking 3 18
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

734 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