Correct Answer D

A. Incorrect. There is no CreateForm method on a Form class. A new form is created by using the New keyword.

B. Incorrect. You must create a new instance of Form 1 with the New keyword before calling methods on that instance.

C. Incorrect. myForm is not declared, and you cannot assign an instance variable to a class, although in Microsoft Visual Basic, "Forml" would return the default instance of Forml.

D. Correct. myForm is correctly declared and instantiated.

0 0

Post a comment