Solved

Treeview and Imagelist using vbscript...?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SVG Logo 4 34
Login area of a page 4 33
Retrieve values of an HTML form using JQUERY 2 39
Enter key on html form page 11 48
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now