C
C#16mo ago
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..
5 Replies
Thinker
Thinker16mo ago
You mean you want to pass the newForm as the parameter to Application.Run?
Play4K
Play4K16mo ago
Yeah, someone helped me out 🙂
Thinker
Thinker16mo ago
So the question is answered?
Play4K
Play4K16mo ago
yes, should i click on post closed? It was my first time asking a question
Thinker
Thinker16mo ago
yeah, do /close