473,569 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with TreeNodes images not displayed

Hi,
We are working on a vb.net WinForms project based on the Composite UI
Application Block (VS2005). I have a strange problem. At first, I
thought 10 minutes would be fairly enough for me to solve it but I've
spent almost 6 hours on it today and still can't figure out what's
wrong.
Using the CAB, I have built a control that intercepts messages coming
from other CAB's SmartParts controls and display them into a treeview
control. The TreeView's imageList property is linked to a ImageList
control containing three bitmaps. My problem is I just can't find a way

to have my little images next to the treeNodes object containing my
messages. The same images with an identical treeview used on a winforms

test project worked well but I just don't know why it does'nt work on
my PC.
It's strange to notice that my neighbor, using the exact same code, has

the images displayed! I tried to fix the problem on my personnal PC and

it works witout any changes to the code or usercontrol.
I removed the DebuggerStepThr ough attribute of the initializeCompo nent
method to be able to pu a breakpoint on the code that loads the bitmaps

from the usercontrol's resx file and everything seems to be ok but
still no images on the nodes.
I tried using a listview control linked to the exact same ImageList
object and it did'nt change anything. Still no images.
I tried puting my treeview on another SmarParts' control and still have

no images shown.
I tried putting it on a regular modal form using the same form that
worked fine on the winforms test project and guess what... nothing
happened!
I placed a button with an image on it and it did work fine althought
the bmp file is stored in the resx file just like the imageList's
images.
I'm out of ideas
Does'nt anybody have a clue?
Thanks

Nov 23 '06 #1
0 1214

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3520
by: CharitiesOnline | last post by:
Hello, I have set this script up to add paging to a search results page. Which on the first page works fine. I calculates how many pages there should be depending on the number of results returned from my search and how many records I have set it to display per page. All great so far, HOWEVER..... When you click the next link to see the...
1
1391
by: Andrew | last post by:
I have a Recordset as below which works SELECT DISTINCT MemberID, RegStatus, ProfileDate, Title, PostTown, PostCode FROM ORDER BY ProfileDate DESC However as soon as I add a further field called "images" it all goes wrong MemberID may have 3 images attached
10
3338
by: windandwaves | last post by:
Hi I have the following html: <div id="menu"> <div id="m1"><a href="m1.php"><img src="m1.gif" alt="m1"></a></div> <div id="m2"><a href="m2.php"><img src="m2.gif" alt="m2"></a></div> <div id="m3"><a href="m3.php"><img src="m3.gif" alt="m3"></a></div> <div id="m4"><a href="m4.php"><img src="m4.gif" alt="m4"></a></div> <div id="m5"><a...
40
2800
by: Geoff Cox | last post by:
Hello, I am still having problems - apologies if the answer is in previous postings! I now have, in the header, <sctipt> var myimages=new Array();
1
1417
by: Abdessamad Belangour | last post by:
Hi all, I have a Windows Form class containing a treeView control. I have another class HierarchyDocument that creates a hierarchy of treeNodes and has a method (createHierarchy) that returns a TreeNode object. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4
3706
by: Saso Zagoranski | last post by:
Hi! Here is what I'm trying to do: I have created a UserControl named PictureView. It holds all the images in one directory in the Bitmap images variable. The selected image is displayed in the PictureBox control. Here is how it works.
2
1945
by: Celine | last post by:
I am building a website using C#, asp.net and SqlServer. I need to store a lot of images in my database. I need to store thumbnails but also larger pictures(when user clicks thumbnails a larger picture is displayed). For doing that I was told to store only the URL's. My problem now is how to display these images. I know that the tag <img> is...
7
2092
by: Andrew Christiansen | last post by:
Hey everyone. I have Visual Basic .NET 2003 and am trying to show images on a treeview control. I have the imagelist on the form filled with images, and have the ImageList property of the treeview control set to the imagelist containing the images I want to be displayed next to each node. It seems that no matter what I do there will be no...
8
2337
by: DJA | last post by:
Hello, I site I designed has links that don't seem to work in mac IE 5.2. In my site I'm using CSS to imitate image buttons by using the background image property along with a little extra markup to make it work. When you mouse over the button the hover state is activated and the 'over' graphic is displayed, and the link url is displayed...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
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...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3656
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...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
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
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.