Re: Arghhh...strict, but not strict enough
- From: "John Whitworth" <sexyjw@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Apr 2009 12:10:55 +0100
"Armin Zingler" <az.nospam@xxxxxxxxxx> wrote in message news:uvuMWtcuJHA.3848@xxxxxxxxxxxxxxxxxxxxxxx
John Whitworth wrote:I'm sure it's probably glaringly obvious to someone, but I can't work
out what to do. I can see that a ToolStripItem isn't a
ToolStripMenuItem, but how do I get around this?
If you know that the reference will always reference a ToolStipMenuItem, use type casting:
SelectedReaderMenu = directcast(e.ClickedItem, toolstripmenuitem)
Armin
Thanks Armin - I got there from Patrice's message. But is there a difference between CType and directcast?
John
.
- Follow-Ups:
- Re: Arghhh...strict, but not strict enough
- From: Armin Zingler
- Re: Arghhh...strict, but not strict enough
- From: Cor Ligthert[MVP]
- Re: Arghhh...strict, but not strict enough
- References:
- Arghhh...strict, but not strict enough
- From: John Whitworth
- Re: Arghhh...strict, but not strict enough
- From: Armin Zingler
- Arghhh...strict, but not strict enough
- Prev by Date: returning multiple values at the same time in a function
- Next by Date: Re: returning multiple values at the same time in a function
- Previous by thread: Re: Arghhh...strict, but not strict enough
- Next by thread: Re: Arghhh...strict, but not strict enough
- Index(es):
Relevant Pages
|