Using events in VB.NET

From Ribbon Commander Documentation
Revision as of 19:35, 15 March 2013 by Rxdff15551 bb53 (Talk | contribs) (Created page with "== Background == You can subscribe to events of Dynamic RibbonX controls by using .NET events or .NET delegates. Here, we show how it can be done by using .NET ev...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Background

You can subscribe to events of Dynamic RibbonX controls by using .NET events or .NET delegates. Here, we show how it can be done by using .NET events. In general you need to take the following steps:

  • Declare a member variable of the events source control type WithEvents
  • Use Visual Studio to insert the desired event stubs