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 6 2287
"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
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
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |