Hello,
I created a User Control consisting of a TreeView and an ImageList. I've
populated the ImageList with pictures (design-time using the Properties
Window), and I've added some Nodes to the TreeView setting certain Nodes to
different graphics from the ImageList (once again at design-time). The
problem is, when I add the User Control to my main form (of a seperate
project), the icons of the TreeView displayed on the control all change to
the 0th index graphic of the ImageList.
For example, if I have node1 with graphic1, node2 and graphic2 etc., on the
main form, node1, node2, ... *all* have graphic1.
Is there some extra process I am missing to retain the indices of the
graphics for the TreeView?? I haven't even coded anything since this is
just point-and-click so far.
Thanks for any help.
--
Regards,
Webster 1 2238
I added code to make the control load the default nodes programmatically (in
the Load event of the User Control) and it works ok, but I have to specify
the image indices of the icon to be associated with the node. Why is this
so?? Why doesn't the User Control retain the indices placed via the
Properties Window?
--
Regards,
Webster
"Webster" <we************@home.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl... Hello,
I created a User Control consisting of a TreeView and an ImageList. I've populated the ImageList with pictures (design-time using the Properties Window), and I've added some Nodes to the TreeView setting certain Nodes
to different graphics from the ImageList (once again at design-time). The problem is, when I add the User Control to my main form (of a seperate project), the icons of the TreeView displayed on the control all change to the 0th index graphic of the ImageList.
For example, if I have node1 with graphic1, node2 and graphic2 etc., on
the main form, node1, node2, ... *all* have graphic1.
Is there some extra process I am missing to retain the indices of the graphics for the TreeView?? I haven't even coded anything since this is just point-and-click so far.
Thanks for any help.
-- Regards, Webster
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: What-a-Tool |
last post by:
Is possible to use the windows image list for icon display in my treeview
control?
Would appreciate it you could point me towards a code sample or Key phrase
to use in a google search.
Thanks...
|
by: Anthony Boudouvas |
last post by:
Hi to all,
i have a treeview that i put some nodes in it with their repsective images.
If i try to change the image and set it to some other ImageList index,
nothing happens.
The code i use...
|
by: feel |
last post by:
Goin' crazy with this recursive function ported from delphi...
I send a string like DirA/ DirB /DirC but i get in the treeView
each one in a new node.Cant get the child node....!!
-DirA
-DirB...
|
by: paradox |
last post by:
I want to have a TreeView that shows an image on some items, but not
all. Basically, if a certain condition is true, a caution icon is
placed next to the treeview item. The problem is that, by...
|
by: Grant Schenck |
last post by:
Hello,
I'm going round and round on how to best handle images for a treeview
control. These are all known at design time so there is no dynamic aspect.
That said, I want to associate the...
|
by: Tom |
last post by:
Why in the heck does VB.NET want to set the SelectedImageIndex any time I
set the ImageList for my treeview?!? Yes, I want to have images for the
nodes, but I don't want an image to be displayed...
|
by: Sarika |
last post by:
Hi,
I am a little confused about associating an image w/ the VB.NET TreeView
Control. My specific requirement is that I want to associate an image w/ some
specific nodes in the TreeView only.
...
|
by: amruta |
last post by:
the code below dows not let me get the parent child view... all the nodes are
show in one line only...
also i need them to be collasped ...
Thanks ..
|
by: Jeffrey Walton |
last post by:
Hi All,
I have an array of 16x16 bitmaps (60 total). I've tried adding the
array to the ImageList with the Add method, but the TreeView paints as
if no BMP is present.
The problem is the...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |