Re: ToolStripDropDownMenu and SourceControl ??
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 15:56:23 -0700
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
.
- Follow-Ups:
- Re: ToolStripDropDownMenu and SourceControl ??
- From: David
- Re: ToolStripDropDownMenu and SourceControl ??
- References:
- ToolStripDropDownMenu and SourceControl ??
- From: David
- RE: ToolStripDropDownMenu and SourceControl ??
- From: David
- ToolStripDropDownMenu and SourceControl ??
- Prev by Date: Re: hashed string
- Next by Date: Re: Where is System.Linq
- Previous by thread: RE: ToolStripDropDownMenu and SourceControl ??
- Next by thread: Re: ToolStripDropDownMenu and SourceControl ??
- Index(es):
Relevant Pages
|