C
C#2y 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
Thinker2y ago
You mean you want to pass the newForm as the parameter to Application.Run?
Play4K
Play4KOP2y ago
Yeah, someone helped me out 🙂
Thinker
Thinker2y ago
So the question is answered?
Play4K
Play4KOP2y ago
yes, should i click on post closed? It was my first time asking a question
Thinker
Thinker2y ago
yeah, do /close
Want results from more Discord servers?
Add your server