I have coding homework. We are Learning c# and are using microsoft visual studio. Question: Consider that you have two forms, namely LoginForm and PaymentForm. PaymentForm will be called when a but


I have coding homework. We are Learning c# and are using microsoft visual studio. 

Question:

Consider that you have two forms, namely LoginForm and PaymentForm. PaymentForm will be called when a button control is clicked on LoginForm. Write a simple code which creates the object of PaymentForm and use the object to display the form when input is entered for a textbox control in the LoginForm, otherwise create an object of ErrorForm and show the error form.