C#C
C#3y ago
9 replies
Diesel Geezer

❔ How to Initialize different forms using same piece of code

I have this piece of code and i want to use it for different forms. In this case i can't initialize the form directly using its name like
`customForm frm = new customForm();' 
and i tried using the 'Form' class which is more general. Problem is that initializing forms using the 'Form' class does not work properly. How can i make this function work with different classes?
image.png
Was this page helpful?