I want to load a Form with the controls (buttons, textbox …) to prevent the code from being too long.
It’s possible?
Alkher
December 15, 2017, 5:19pm
2
If by ‘too long’ you mean writing your own ui library is a lot of work, then, you can try this (just by searching a little with the button existing for this)
[Banner]
Welcome to MonoGame.Forms!
MonoGame.Forms is the easiest way of integrating a MonoGame render window into your windows forms project. It should make your life much easier, when you want to create your own editor environment.
[Demo]
With the beginning of the year 2017 I started to research the possibility of integrating MonoGame into a WindowsForms project, so it would have been possible for me to create my own editor environments.
Since then some projects saw the light of the day l…
I tink i get it:
Cadastro form = new Cadastro();
form.TopLevel = false; //
System.Windows.Forms.Control.FromHandle(Window.Handle).Controls.Add(form);
form.Show();
Thanks.