I tried ListSelectionNotificationReceiver on ListBox1 in Window1. In the Opening event of Window1 I added the following statement:
ListBox1.AddListSelectionNotificationReceiver(MyReceiver1)
MyReceiver1 is part of Windows1 and refers to MyReceiver with the selected interface ListSelectionNotificationReceiver. The class MyReceiver defines the methods SelectionChanged (MessageBox “Hello1”)) and SelectionChanging (MessageBox(“Hello2”)).
A new selection of a row in ListBox1 doesn’t display a message. What is wrong in my example?
5 posts - 2 participants