N 4 May 2024 by Graeme_Grant
This is called the State Design Pattern. A quick google search: state design pattern vb - Google Search[^]. There are many examples to choose from, like: State Machine - State Pattern vs. Classic Approach - Code Project[^]