Create a read-write property named ValidLastName that stores a String value in the hidden variable mstrLastName. Implement the property using a Property Procedure. When the developer attempts to stores a value in the property, your code should validate that the value contains between 1 and 15 characters. If the data is not valid, throw an exception.
Use VB.NET programming to create and copy in word document.
This is a program written using VB.NET which illustrates how to use properties.