Bug in ContextMenu : SOLVED!!!!!!

  • Thread starter Thread starter I_AM_DON_AND_YOU?
  • Start date Start date
I

I_AM_DON_AND_YOU?

Actually I just solved the problem. And the solutions is:

Set the ContextMenu Property of Button1 as ContextMenu1. .... and then IT
WORKS!!!!!!!!!!!

However IT IS STILL A BUG. After all, if you are openign a contextmenu by
left-clicking of the mouse what it has to do with contextmenu property.

Any way...if it works then who cares....(what code is written in the
background...)


****************
Hi Don,

We seem to have made a right mess of your thread. ;-)

Yes. It has to be a bug. No way can you switch a menu item off and back
on
and have it gone for good.

Are you going to recreate the menus as required? Do you know how?
Somewhere in all these postings is some advice about that.

Regards,
Fergus
 
Hi Don,

ROFL - Well done that man!!

The only thing that might spoil the fun is that the User can now use
<Right-Click> on the Button and get the Menu without going through your
routine to switch items on and off according to the file. They will therefore
get the <previously> defined Menu. To get round that you could do the Visible
on/off stuff at the same time that you write the file, so that the Menu is
always ready for correct action.

Regards,
Fergus
 
Hi Don,

My congratulations with so much persistency

I find it embarrassing to see how people spoil your message which was meant
to show the probably bug to Microsoft.

Cor
 
Actually I was thinking the other way. I was thinking that we should set
contextmenu property of button1 just right before the menu is called and
then re-set it after that (so that no one could open the contextmenu by
right-clicking).

I mean to say:

button1.contextmenu = contextmenu1 (Line 1: We are setting the contextmenu
property)
me.contextmenu1.show(me.button1, new point(0,0)) (Line 2: We are opening
the contextmenu by left-click)
??????????????? (Here I want to re-set the contextmenu property of
button1)


However I don't know how to do that because
button1.contextmenu = " " doesn't work.

I mean how do we delete the contextmenu property of a button1 (at run time)?
May be if you can tell me that we could test that thing...

Thanks in advance!
 
Cor:

Do you know where we could submit these kinds of bugs to Microsoft (Support
Centre) or other concerned people?
 
Hi Don,

I have seen that the Microsoft guys(and girls) are very active when there is
a statement in this newsgroup "Bug".

For that it is not so nice, that there is now SOLVED!!!!

Maybe it is a good idea that you start a new thread yourself with a text
like

"Microsoft serious BUG found in this newsgroup", and add the zipfile from
Fergus again.

And I hope that than not again everybody finds he has to say something about
that.

Cor
 
It's very good idea. Why don't you start a new thread with that attachment
and message. I don't want to start a new thread (with this topic - 3 are
already there - on bug) because I don't know why when I start a query the
thread keeps on bigger and bigger and bigger and ....
 
Morning Cor,

When there's a fight in the saloon bar, tables get knocked over and drinks
go flying. Innocent people get bloody noses and men go crashing through the
windows.

At least that how it seems in the Westerns that I've watched.

Aw shucks, Sheriff, we wuz jes a horsin around.

;-))

Regards,
Fergus
 
Hi Don,

ROFL. Oh dear, I'm ROFL, so ROFL, LOL, sorry!! [wipes tears] ;-)

Regards and good morning.
Fergus
 
Hi Don,

I think that is an idea, but not so good, because for someone who looks to
it, could think that it is a new bug and we start again with a long thread
and go on and go on.

Maybe better is to wait till after the weekend and that you post it than
again (or not if you think it's not my problem anymore).


Cor
 
Good Morning Fergus,
At least that how it seems in the Westerns that I've watched.

I was talking about the last one, now I have the thread to give you an other
message not that fun one, happenly it ended very nice with that pup example
from you.

I remember me that the first answer you did get on your first contribution
was "Don't post in HTML".

And before you say it I remember me the second one too about our comic
heroine "Pipeline".

:-))

Cor
 
Hi Don,

Because ContextMenu is an object reference, you can clear it by saying
Button1.ContextMenu = Nothing

Regards,
Fergus
 
I tried this way:

button1.contextmenu = contextmenu1
me.contextmenu1.show(me.button1, new point(0,0))
button1.contextmenu = nothing

But again the same (bug) problem. May be we need to find some way to disable
right-clicking (even if the contextmenu is set).
 
Hi Don,

Sorry I haven't got back to you earlier. I think you might know where I've
been, lol.

I tried the same as you:
Button1.ContextMenu = ContextMenu1
Me.ContextMenu1.Show (Button1, New Point(0, 0))
Button1.ContextMenu = Nothing

I went back and forth between Forms 1, 2 and 3 and switched items on and
off and it worked perfectly each time.

Given that some time has elapsed - is it still not working for you?

Regards,
Fergus
 
Yes. It worked for me also. I don't know why it didn't work earlier. But it
is working now. Thanks!
 
Back
Top