473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Context Menus

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
Nov 21 '05 #1
6 2286
"Ash Phillips" <as*@expwin.net> wrote
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
Nov 21 '05 #2
Anyone? :S
"Ash Phillips" <as*@expwin.net> wrote in message
news:uz**************@TK2MSFTNGP15.phx.gbl...
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

Nov 21 '05 #3
Can someone help?!?

I am desperate to solve this issue :'(
"Ash Phillips" <as*@expwin.net> wrote in message
news:uz**************@TK2MSFTNGP15.phx.gbl...
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

Nov 21 '05 #4
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
Nov 21 '05 #5
I know that - that's not what I want...

If you re-read my original post, you'll see what I mean.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
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

Nov 21 '05 #6
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" <as*@expwin.net>
I know that - that's not what I want...

If you re-read my original post, you'll see what I mean.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
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


Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Eddie de Bear | last post by:
Hi, A project I am working on has a requirement for dynamic menus. For the most part this works really well. The menus I'm creating a based on files and directories, so naturally the menu...
2
by: Patryk | last post by:
Hi I'm making a web application which is a copy of existing desktop application. I use telerik controlls for MS visual studio I have a little bit complicated situation beacuse I need context...
1
by: Doug Bell | last post by:
Hi, If I modify my Registry adding a new key HKEY_CLASSES_ROOT\*\shell\Use My App\command with a (Default) Value of C:\Program Files\Doug\DotNetApps\MyApp.exe "%1" then right clicking on files in...
4
by: ssg31415926 | last post by:
I've got a ListView which can show many different types of object. I need to display a ContextMenu whose MenuItems depend on the object type. I was planning to pre-create the ContextMenus when...
6
by: Bob | last post by:
I'd like to be able to do three things with the context menu 1. change the width 2. change the borderstyle to none 3. change the back color I don't think it's possible, so what's the best way...
2
by: Dino M. Buljubasic | last post by:
I have several context menus added to my form. The form is displaying items in listviews connected to the context menus. When I click on an item in a list view, a popup context menu shows allowing...
1
by: bjaeger | last post by:
A few months back I was "playing" with an Access 2000 application I created. I somehow disabled the delete option from all menus, toolbars, and context menus. Now I cannot do any maintenance on...
0
by: tony.spalding | last post by:
I'm having a problem trying to add a link to my add-in to a context menu. I'm trying to add it to the context menu that you get when you right click on a stored procedure within the Server...
2
by: Ron M. Newman | last post by:
Hi, Just need a little advice. Id like to build *dynamic* context menus for tree nodes. I'm pretty versed in building context menus and attaching them to tree nodes. My question is, what...
4
by: Karl | last post by:
Hi all, I want to write an application that is launched from the context menu in Windows Explorer/Computer. That is to say, when I am browsing around my hard drive and get to any location I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.