Thank you very much Sash for pointing that one out, I missed that.
Next if I assign a Context Popup menu to do the Select All sometimes it works and sometimes it does not if I set the Handled=true in the ListBox1ContextPopup event. I wanted to not to show the Context PopupMenu when the list is empty by counting the number of items in the ListBox and setting the Handled to true when the list is empty.