I am using VS 2005 and just wonder why I don't have this method? 11 7401
Because it doesn't exist?
There is a TreeView.CheckBoxes property (bool) if that helps any?
Marc
Hi,
My situation is I already set the TreeView.CheckBoxes property.
But in this treeview I don't want to show all items have checkboxes, but
some of them I want to show text and icon or text only.
For example:
Office as folder
Under this "Office" folder, there are items have checkboxes.
So I want to set the TreeNode.ShowCheckBox = false for this "Office" folder.
"Marc Gravell" <ma**********@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
Because it doesn't exist?
There is a TreeView.CheckBoxes property (bool) if that helps any?
Marc
The best I can suggest is to just make this checkbox inert; you can do
this by handling the TreeView's BeforeCheck event, and (for the
folders) set "e.Cancel = true;" (where "e" is the event-args parameter)
- now it cannot be checked.
Alternatively, you're looking at custom icons, so faking it... which
may not work so well.
Marc
Sorry, in your first solution the "folder" still has checkbox but cannot be
checked, right?
I am using VS 2005 Team System, is this .NET 2?
It this is .NET 2, why there is no ShowCheckBox method of my TreeNode
object?
"Marc Gravell" <ma**********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
The best I can suggest is to just make this checkbox inert; you can do
this by handling the TreeView's BeforeCheck event, and (for the
folders) set "e.Cancel = true;" (where "e" is the event-args parameter)
- now it cannot be checked.
Alternatively, you're looking at custom icons, so faking it... which
may not work so well.
Marc
Ah, I just noticed the showcheckbox property is a web control property.
So it does not apply to my desktop TreeNode ?
"Alan T" <al*************@yahoo.com.auwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
Sorry, in your first solution the "folder" still has checkbox but cannot
be checked, right?
I am using VS 2005 Team System, is this .NET 2?
It this is .NET 2, why there is no ShowCheckBox method of my TreeNode
object?
"Marc Gravell" <ma**********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
>The best I can suggest is to just make this checkbox inert; you can do this by handling the TreeView's BeforeCheck event, and (for the folders) set "e.Cancel = true;" (where "e" is the event-args parameter) - now it cannot be checked.
Alternatively, you're looking at custom icons, so faking it... which may not work so well.
Marc
Use this (it's VB.NET so you'll need to translate it): http://groups.google.com/group/micro...0571018c?hl=en
/claes
"Alan T" <al*************@yahoo.com.auwrote in message
news:u0**************@TK2MSFTNGP05.phx.gbl...
Hi,
My situation is I already set the TreeView.CheckBoxes property.
But in this treeview I don't want to show all items have checkboxes, but
some of them I want to show text and icon or text only.
For example:
Office as folder
Under this "Office" folder, there are items have checkboxes.
So I want to set the TreeNode.ShowCheckBox = false for this "Office"
folder.
"Marc Gravell" <ma**********@gmail.comwrote in message
news:11**********************@74g2000cwt.googlegro ups.com...
>Because it doesn't exist?
There is a TreeView.CheckBoxes property (bool) if that helps any?
Marc
I found 3 icons, "folders", "checked", "unchecked"
and managed to change the icon when click the treenode.
But, I got a problem of the treeview's selectedimageindex property.
I cannot set the selectedimageindex to -1.
Because when I select a treenode, it will display one of the image in the
image list.
How do I get rid of the image when I select the treenode?
"Claes Bergefall" <lo*****@nospam.nospamwrote in message
news:Oo**************@TK2MSFTNGP02.phx.gbl...
Use this (it's VB.NET so you'll need to translate it): http://groups.google.com/group/micro...0571018c?hl=en
/claes
"Alan T" <al*************@yahoo.com.auwrote in message
news:u0**************@TK2MSFTNGP05.phx.gbl...
>Hi, My situation is I already set the TreeView.CheckBoxes property. But in this treeview I don't want to show all items have checkboxes, but some of them I want to show text and icon or text only. For example:
Office as folder Under this "Office" folder, there are items have checkboxes.
So I want to set the TreeNode.ShowCheckBox = false for this "Office" folder.
"Marc Gravell" <ma**********@gmail.comwrote in message news:11**********************@74g2000cwt.googlegr oups.com...
>>Because it doesn't exist?
There is a TreeView.CheckBoxes property (bool) if that helps any?
Marc
I thought you wanted to get rid of the checkbox for certain nodes?
Why are you using SelectedImageIndex?
/claes
"Alan T" <al*************@yahoo.com.auwrote in message
news:O8**************@TK2MSFTNGP03.phx.gbl...
>I found 3 icons, "folders", "checked", "unchecked"
and managed to change the icon when click the treenode.
But, I got a problem of the treeview's selectedimageindex property.
I cannot set the selectedimageindex to -1.
Because when I select a treenode, it will display one of the image in the
image list.
How do I get rid of the image when I select the treenode?
"Claes Bergefall" <lo*****@nospam.nospamwrote in message
news:Oo**************@TK2MSFTNGP02.phx.gbl...
>Use this (it's VB.NET so you'll need to translate it): http://groups.google.com/group/micro...0571018c?hl=en
/claes
"Alan T" <al*************@yahoo.com.auwrote in message news:u0**************@TK2MSFTNGP05.phx.gbl...
>>Hi, My situation is I already set the TreeView.CheckBoxes property. But in this treeview I don't want to show all items have checkboxes, but some of them I want to show text and icon or text only. For example:
Office as folder Under this "Office" folder, there are items have checkboxes.
So I want to set the TreeNode.ShowCheckBox = false for this "Office" folder.
"Marc Gravell" <ma**********@gmail.comwrote in message news:11**********************@74g2000cwt.googleg roups.com... Because it doesn't exist?
There is a TreeView.CheckBoxes property (bool) if that helps any?
Marc
Could you suggest what properties to set in order to get rid of the
selectedimageindex?
"Claes Bergefall" <lo*****@nospam.nospamwrote in message
news:eJ**************@TK2MSFTNGP05.phx.gbl...
>I thought you wanted to get rid of the checkbox for certain nodes?
Why are you using SelectedImageIndex?
/claes
"Alan T" <al*************@yahoo.com.auwrote in message
news:O8**************@TK2MSFTNGP03.phx.gbl...
>>I found 3 icons, "folders", "checked", "unchecked" and managed to change the icon when click the treenode. But, I got a problem of the treeview's selectedimageindex property.
I cannot set the selectedimageindex to -1. Because when I select a treenode, it will display one of the image in the image list. How do I get rid of the image when I select the treenode?
"Claes Bergefall" <lo*****@nospam.nospamwrote in message news:Oo**************@TK2MSFTNGP02.phx.gbl...
>>Use this (it's VB.NET so you'll need to translate it): http://groups.google.com/group/micro...0571018c?hl=en
/claes
"Alan T" <al*************@yahoo.com.auwrote in message news:u0**************@TK2MSFTNGP05.phx.gbl... Hi, My situation is I already set the TreeView.CheckBoxes property. But in this treeview I don't want to show all items have checkboxes, but some of them I want to show text and icon or text only. For example:
Office as folder Under this "Office" folder, there are items have checkboxes.
So I want to set the TreeNode.ShowCheckBox = false for this "Office" folder.
"Marc Gravell" <ma**********@gmail.comwrote in message news:11**********************@74g2000cwt.google groups.com... Because it doesn't exist? > There is a TreeView.CheckBoxes property (bool) if that helps any? > Marc >
No idea. Setting it to -1 should work
/claes
"Alan T" <al*************@yahoo.com.auwrote in message
news:O2**************@TK2MSFTNGP03.phx.gbl...
Could you suggest what properties to set in order to get rid of the
selectedimageindex?
"Claes Bergefall" <lo*****@nospam.nospamwrote in message
news:eJ**************@TK2MSFTNGP05.phx.gbl...
>>I thought you wanted to get rid of the checkbox for certain nodes? Why are you using SelectedImageIndex?
/claes
"Alan T" <al*************@yahoo.com.auwrote in message news:O8**************@TK2MSFTNGP03.phx.gbl...
>>>I found 3 icons, "folders", "checked", "unchecked" and managed to change the icon when click the treenode. But, I got a problem of the treeview's selectedimageindex property.
I cannot set the selectedimageindex to -1. Because when I select a treenode, it will display one of the image in the image list. How do I get rid of the image when I select the treenode?
"Claes Bergefall" <lo*****@nospam.nospamwrote in message news:Oo**************@TK2MSFTNGP02.phx.gbl... Use this (it's VB.NET so you'll need to translate it): http://groups.google.com/group/micro...0571018c?hl=en
/claes
"Alan T" <al*************@yahoo.com.auwrote in message news:u0**************@TK2MSFTNGP05.phx.gbl... Hi, My situation is I already set the TreeView.CheckBoxes property. But in this treeview I don't want to show all items have checkboxes, but some of them I want to show text and icon or text only. For example: > Office as folder Under this "Office" folder, there are items have checkboxes. > So I want to set the TreeNode.ShowCheckBox = false for this "Office" folder. > > "Marc Gravell" <ma**********@gmail.comwrote in message news:11**********************@74g2000cwt.googl egroups.com... >Because it doesn't exist? >> >There is a TreeView.CheckBoxes property (bool) if that helps any? >> >Marc >> > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Benny Raymond |
last post by:
More problems with this... When I run this code, the main form returns
an invalid cast exception as it's executing the line "TreeNode n =
(TreeNode) this.Nodes;"
Does anyone know what would...
|
by: naija naija |
last post by:
Hi All,
I'm using the TreView Web Control for my MENU.
And the Menu is populated from an XML file below.
I want a way in which i can manipulate the XML when i want to manage it
without having to...
|
by: markaelkins |
last post by:
Hi. I am trying to enter a variable in the treenodesrc of a treenode. I am
basically trying to send an ID variable into sql to return different records.
I've searched everywhere and cannot find the...
|
by: fred |
last post by:
I am using the clipboard to copy and paste a TreeNode but the Tag property
does not seem to be copied.
I use the Tag property for an Object that contains data relating to the
TreeNode. The Tag...
|
by: tanya foster |
last post by:
Hello,
I am re-writing a visual basic .net application(visual studio 2003) in an
asp.net application(visual studio 2005). The vb.net application relied on a
treeview and hence, treenodes. The...
| |
by: Alan T |
last post by:
I have set the checkbox property of a treeview to true so every treenode has
checkbox.
How do I set certain nodes checkbox off? Just display an icon instead of a
checkbox?
My situation is I...
|
by: divya1949 |
last post by:
Create a windows c# application which will
Read a xml file and populate nodes in the treeview.
1 On selection of treenode display the child nodes of that node in listview control
2. ...
|
by: jmDesktop |
last post by:
I am trying to add nodes with keys to my treeview. I can add general
nodes without problem with:
//create new node
TreeNode newNode = new TreeNode(myIdNumber);
//create children
TreeNode...
|
by: AAaron123 |
last post by:
If you see this posted twice - sorry.
My news reader showed my first post as "No Longer Available"
I have the following in a .css file.
The treeNodes behave as if they were "a" elements.
...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |