?
Solved

Treeview and Imagelist using vbscript...?

Posted on 1998-09-07
4
Medium Priority
?
696 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 200 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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

765 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