Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Visit: VBSourceSeek - The VB.NET sourcecode library

 

 

"A mere friend will agree with you, but a real friend will argue."

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...