C#C
C#3y ago
5 replies
Play4K

✅ Generics, how to pass a new Form directly as a parameter without creating an instance before

I would like to give as parameter the Form that i want to call, by entereing which one it is with "new WindowsBoot()" for example
But in the function itself i dont know how to write it correctly so that in Application.Run(xxxx) it passes the Form that i gave in the parameter..
Generic.png
Was this page helpful?