Answered by:
vb.net equivalent of c# expression

Question
-
Hi
What is the vb.net expression of this c# expression please?
Frame.GetController<ShowNavigationItemController>().CustomShowNavigationItem += new EventHandler<CustomShowNavigationItemEventArgs>(WindowController1_CustomShowNavigationItem);
ThanksRegards
Tuesday, January 10, 2012 3:17 AM
Answers
-
As previously stated the AddHandler method. Below are some ways to do this.
AddHandler Frame.GetController(Of ShowNavigationItemController).CustomShowNavigationItem, AddressOf WindowController1_CustomShowNavigationItem OR AddHandler Frame.GetController(Of ShowNavigationItemController).CustomShowNavigationItem, New System.EventHandler(AddressOf WindowController1_CustomShowNavigationItem)
Thanks, Jayson
jayson.furr@fujesolutions.com
There are so many ways to approach almost anything.Tuesday, January 10, 2012 4:41 AM
All replies
-
The AddHandler method.
- Proposed as answer by Mike Feng Wednesday, January 11, 2012 3:32 PM
Tuesday, January 10, 2012 4:19 AM -
As previously stated the AddHandler method. Below are some ways to do this.
AddHandler Frame.GetController(Of ShowNavigationItemController).CustomShowNavigationItem, AddressOf WindowController1_CustomShowNavigationItem OR AddHandler Frame.GetController(Of ShowNavigationItemController).CustomShowNavigationItem, New System.EventHandler(AddressOf WindowController1_CustomShowNavigationItem)
Thanks, Jayson
jayson.furr@fujesolutions.com
There are so many ways to approach almost anything.Tuesday, January 10, 2012 4:41 AM -
As previously stated the AddHandler method. Below are some ways to do this. AddHandler Frame.GetController(Of ShowNavigationItemController).CustomShowNavigationItem, AddressOf WindowController1_CustomShowNavigationItem OR AddHandler Frame.GetController(Of ShowNavigationItemController).CustomShowNavigationItem, New System.EventHandler(AddressOf WindowController1_CustomShowNavigationItem)
Thanks, Jayson
jayson.furr@fujesolutions.com
There are so many ways to approach almost anything.Jason,
Use next time this button when you paste in code.
It makes it more readable.
Please don't mark this message as answer.
Success
CorTuesday, January 10, 2012 9:25 AM -
Hi Yahya,
Thank you for posting on this forum.
How about your issue now?
Are the suggestions of the community members helpful?
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Wednesday, January 18, 2012 3:40 PM