Wooahh there, slow down! First please post all of your code of what you are doing. Because from what I understand from what you are posting you are attempting to use GDI+ control components (labels, panels, textboxes, ect...) inside a SFML window which will not work.
If you want to use the .NET controls you have to use them inside a standard .NET form because SFML has no way to render them (or handle them). If all you want with your standard .NET form is to be full screen set the border style to none, the topmost to true, and window state to maximized.
If you are instead want an SFML render window there is no way to put .NET controls inside it. Instead try some of the existing GUI libraries for use with SFML.
SFMLWindow
= new RenderWindow
(this.Handle);I think you need to reread the documentation of what this really does. All this does is create an SFML rendow window that is drawn ON TOP of your form (or whatever control this.Handle references).
SFMLWindow.Close();
All this does is close your SFML render window which is drawn on top of your .NET form, this code will not close the .NET form.
SFMLWindow
= new RenderWindow
(new VideoMode
(1920,
1080),
"Game", Styles
.Default);No wonder you are wondering where your .NET controls got to... Your creating a SFML render window which is incapable of handling these objects. All in all try my suggestion above and just bring your .NET window (with the SFML window contained inside) to full screen and see if that helps. If that doesn't please post your ENTIRE code related to how you handle the windows.
BTW krzat, there is nothing wrong with your pastebin code, trouble is it sounds like he wants to use an SFML render window along with GDI+ components.