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

  • Thread starter Thread starter Academia
  • Start date Start date
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?
 
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
 
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.
 
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
 
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
 
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
 
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
 
Back
Top