Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Context Menus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ash Phillips - 28 Oct 2004 19:21 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.