G
Guest
Hello,
I have a ListBox with column names to use in a report. When the user
right-clicks the ListBox, a ContextMenu is displayed with two items: Sort
Ascending and Sort Descending.
How can I display the ContextMenu only when the ListBox has a selected item?
(All I do now is just disable the menu items if the ListBox's SelectedIndex
is -1.)
Thank you,
Eric
I have a ListBox with column names to use in a report. When the user
right-clicks the ListBox, a ContextMenu is displayed with two items: Sort
Ascending and Sort Descending.
How can I display the ContextMenu only when the ListBox has a selected item?
(All I do now is just disable the menu items if the ListBox's SelectedIndex
is -1.)
Thank you,
Eric