Hi, in VB6, I could use PopupMenu() to display a menu on a control such as a
list view.
I have tried setting my List View in VB.NET to a ContextMenu but I can't get
the same functionality that I had and need like in VB6.
Basically, I just want to disable menu items in the context menu if there is
no item in the List View selected.
Also, on the subject, in VB6 there was lvwListView.ListItems.SelectedItem -
I see "SelectedItems" in VB.NET and it doesn't seem to work at all?
Thanks in advance :)
Ash
Mr.D - 28 Oct 2004 20:02 GMT
> Hi, in VB6, I could use PopupMenu() to display a menu on a control such as a
> list view.
I miss that alot allso!
----
Tim
Ash Phillips - 29 Oct 2004 10:24 GMT
Anyone? :S
> Hi, in VB6, I could use PopupMenu() to display a menu on a control such as a
> list view.
[quoted text clipped - 11 lines]
>
> Ash
Ash Phillips - 31 Oct 2004 14:34 GMT
Can someone help?!?
I am desperate to solve this issue :'(
> Hi, in VB6, I could use PopupMenu() to display a menu on a control such as a
> list view.
[quoted text clipped - 11 lines]
>
> Ash
Cor Ligthert - 31 Oct 2004 14:55 GMT
Ash,
And it is so simple,
I tell it in the most simple way
Drag a contextmenu from your toolbox to your form
Set the items as in a normal menu, you first select the contextmenu icon on
your form for that.
Set in your listview property contextmenu the name of that contextmenu using
the designer.
Done
I hope this helps?
Cor
Ash Phillips - 31 Oct 2004 15:58 GMT
I know that - that's not what I want...
If you re-read my original post, you'll see what I mean.
> Ash,
>
[quoted text clipped - 14 lines]
>
> Cor
Cor Ligthert - 31 Oct 2004 16:51 GMT
Hi Ash,
I think I can understand what you mean, however this is a VBNet newsgroup so
tell what you want and not what was it is in VB6. Than mostly you have a
quick answer. Now I spent maybe time while it is all the time a little bit
else than you want.
For VB6 to VBNet problems is the newsgroup
microsoft.public.dotnet.languages.upgrade
When you want to tell your question referencing to VB6, than is maybe that a
better place to ask your question.
Cor
"Ash Phillips" <ash@expwin.net>
>I know that - that's not what I want...
>
[quoted text clipped - 20 lines]
>>
>> Cor