stustarz Posted February 14, 2003 Posted February 14, 2003 Hello all I have a context menu attached to a list box that enables the user to open another form whose data is filtered by the selected items text - but if the listview isn't full then they are able to right click on an empty space and still use the menu - i would like to be able to prevent this But how... I have tried using an if statement to check if the selecteditem.text is empty but obviously if there isn't a selected item then it cant check for any text! Any help would be appreciated. Thanks Stuart Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
*Gurus* divil Posted February 14, 2003 *Gurus* Posted February 14, 2003 Check listview.SelectedItems.Count to see if anything or nothing is selected. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
stustarz Posted February 14, 2003 Author Posted February 14, 2003 Brilliant thanks Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.