Re: ToolStripDropDownMenu and SourceControl ??

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Mon, 28 Apr 2008 12:52:00 -0700, David <David@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Its difficult to know when there are no responses wheather my question is not
detailed enough, not a common problem so no one is familiar with it to
answer, or just a dumb question (I have had a few). :)

How about option D: three hours is way too early to start getting worried about whether anyone's going to answer your question.

Anyway, I seem to be able to reproduce the issue you're seeing. And I'd agree that it seems to be wrong. Upon finding the top-level ContextMenuStrip instance in which your menu item is contained, the SourceControl property should, IMHO, _always_ tell you the name of the control used to show the menu. But for me, just as you said, I find the property is set to null when handling the Click event of a menu item that's not a top-level item.

Seems like a bug to me. I suppose it might not be, but I'd have to see a really good explanation for the behavior for me to believe that. You may at this point simply need to consider finding a work-around and report the bug to Microsoft in the hopes of getting it fixed.

Pete
.



Relevant Pages

  • Re: Tech: But what if I dont want a No-Pop board?
    ... is a dumb question" policy here on RGP. ... It doesn't *bug* him, so he's ...
    (rec.games.pinball)
  • bugreport = free?
    ... I have a question about reporting bugs. ... It's maybe a very dumb question, ... I see that you have to create an account at Novell.com when one wants to ... or is submitting a bug found in openSUSE free of charge? ...
    (alt.os.linux.suse)