There are different ways to call methods only by a string that contains their name. The simplest way is to use Visual Basic .NET’s CallByName method. The listing below shows some samples of method calls using this method:
An alternative, more low-level solution is based on reflection, which is provided by the .NET Framework. The method Type.InvokeMember can be used to invoke a method on an object. The documentation of this method contains some samples on how to use it to access fields, constructors, methods, and properties: Type.InvokeMember Method (System) – Microsoft Docs.