473,499 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TreeView Missing SelectedItemChanged Event?

Hi All,

Sorry about this beginner question (I'm coming up from Visual C++ or
Down from VB)... Also, pickings are slim for this topic on MSDN [1,
2]. [2] does not really apply, but it was a keyword hit
("SelectedItemChanged"). Does any one know how to receive this
notification? I'm not receiving it.

What I done so far: Hightlight the TreeView in Design Mode, and then
switching to Properties->Events: SelectedItemChanged is not an
available event. I tried the following (TreeView control name is
ObjectTree):

private void ObjectTree_SelectedItemChanged(object sender, EventArgs
e)
{...}

I have no idea what to do with (from [1]):

public static readonly RoutedEvent SelectedItemChangedEvent

Pasting it into the code resulted in compile errors. The Microsoft
Wiki [3] is looking more appealing every day. Sorry about another
beginner question.

Jeff

[1] TreeView.SelectedItemChangedEvent Field,
http://msdn2.microsoft.com/en-us/lib...ngedevent.aspx
[2] DomainUpDown.SelectedItemChanged Event,
http://msdn2.microsoft.com/en-us/lib...emchanged.aspx
[3] Microsoft Wiki, http://msdn2.microsoft.com/en-us/lib...41(VS.80).aspx
Nov 15 '07 #1
0 1264

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

Similar topics

0
1181
by: Ivan Rakyta | last post by:
Hi, does anyone experienced this behaviour? I have a ComboBox with databind. If I change some value in the datarow the ComboBox is bound to, it fires SelectedItemChanged event! The value I have...
1
1875
by: Ziver MALHASOGLU | last post by:
Hello, i want to temporary disable the listBox object's selectedItemChanged event. how can i achieve this? Regards, Ziver
2
2664
by: John Bowman | last post by:
Hello, I'm tyring to understand something about using a TreeView ctrl & assigning the images. For testing purposes I'm just using the VS IDE to create and assign the contents of the TreeView....
17
9091
by: Spam Trap | last post by:
I am upgrading from VB6 where I had access to a treeview NodeClick event (see below)... but now VB.NET does not have this any more. Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)...
2
4847
by: Andrew Ducker | last post by:
I have a treeview linked to a series of panels, making the correct panel visible depending on which node is selected. I now want to check that the user is allowed to leave the current node...
10
2329
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
3
5294
by: sianan | last post by:
Hi, I want to display a 'hover box' (for want of a better description) when the mouse hovers over a node in a tree view. The box would display detail information for the node. It should be...
1
693
by: kvicky | last post by:
I am trying to load child nodes to a TreeNode in a TreeView in a ASP.net web application. The Treeview with parent nodes are loaded on a Page_load while doing if( ! ISPostback ) and then in the...
2
5478
by: makennedy | last post by:
Hi Experts, Please help, I am a newbie to ASP.NET 2.0 may be I am doing something wrong or there may be a bug somewhere. Basically I have a TreeView Control which I have created...
0
7128
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,...
0
7006
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...
0
7169
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,...
0
7215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6892
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...
0
5467
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,...
0
3096
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...
0
1425
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 ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.