Why don't I see ContextMenu in the form's property list???

A

Academia

VS2008

The help for Form lists ContextMenu as a property but it does not appear in
the properties for my form.

Is there something I must do to make it appear there.


Thanks


BTW, in VS2005, which I no longer have, wasn't there some note in the help
for ContextMenu that said it was replaced with ContextMenuStrip? I'm not
sure but I thought there was. It there was such a note why was it removed?
 
K

kimiraikkonen

VS2008

The help for Form lists ContextMenu as a property but it does not appear in
the properties for my form.

Is there something I must do to make it appear there.

Thanks

BTW, in VS2005, which I no longer have, wasn't there some note in the help
for ContextMenu that said it was replaced with ContextMenuStrip? I'm not
sure but I thought there was. It there was such a note why was it removed?

I'm not able to help about the location in VS 2008 but add this code
in your form_load to use contextmenustrip with your form where
contextmenustrip1 is your contextmenustrip name as you know:

Me.ContextMenuStrip = Me.ContextMenuStrip1
 
A

Academia

Thanks a lot for answering.

I do do that in the load event or in New but thought it would be nicer if it
was in the .Designer.vb file where it belongs.

Since nobody told me how to do what I asked I'll assume everyone does as you
suggested.

Thanks again.
 
T

Teemu

Academia said:
VS2008

The help for Form lists ContextMenu as a property but it does not appear
in the properties for my form.

Is there something I must do to make it appear there.


Thanks


BTW, in VS2005, which I no longer have, wasn't there some note in the help
for ContextMenu that said it was replaced with ContextMenuStrip? I'm not
sure but I thought there was. It there was such a note why was it removed?

I can see ContextMenuStrip in Form's properties. It is in Behavior-section
if you are using categorized sorting.


-Teemu
 
T

Teemu

Academia said:
thanks but I'm looking for the ContextMenu

thanks for answering

You won't find it if you are using VB 2005 or VB 2008.

You have to use ContextMenuStrip property which is the same as ContextMenu
in older versions.

-Teemu
 
A

Academia

ContextMenu is still supported.

thanks


Teemu said:
You won't find it if you are using VB 2005 or VB 2008.

You have to use ContextMenuStrip property which is the same as ContextMenu
in older versions.

-Teemu
 
T

Teemu

Academia said:
ContextMenu is still supported.

thanks

Yes it is, but I don't see any reason why to use it. It is not supported in
IDE as you see and ContextMenuStrip has everything that ContextMenu has.

-Teemu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top