From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug-Switcharray event ItemPropertyChanged does not show in event list on property page

The new SwitchArray has an example called Features.2005. The event serviced is ItemPropertyChanged. This event does not show up in the event list on the property page. The list that shows is
 
...
HelpRequested
ImeModeChanged
ItemTemplate
KeyDown
 
According to the Online documentation for SwitchArray, the ItemTemplate is not an event but a readonly property. The proper event is ItemProperyChanged (inherited from ControlArray<TControl>). This does show up in the object browser.
0 Kudos
Message 1 of 4
(3,194 Views)
Thanks for the feedback Steve

I have filed a bug report for this.

Bilal Durrani
NI
0 Kudos
Message 2 of 4
(3,187 Views)
Looks like this is a limitation of VS 2005 designer support.

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=108443

Bilal Durrani
NI
0 Kudos
Message 3 of 4
(3,175 Views)

Bill,

Thank you for finding the VS2005 bug report. My VS2005 version is up to date as of a few weeks ago, so it looks like it's a MIcrosoft bug that NI didn't catch in its own testing. Workaround is to use the Object Browser or intellisense (AddHandler <ControlArray Name>.) shows a drop-down list that includes ItemPropertyChanged.

Problem solved.

Steve

0 Kudos
Message 4 of 4
(3,174 Views)