• Advertisement
Sign in to follow this  

How to show a popup Form object in fullscreen mode

This topic is 2082 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Recently, I'm working on a C# project using SlimDX(Direct3D 9) to render 2D images in fullscreen mode. I'd like to use GDI window to do some settings. I've tried as followings, but it does not work, it will exit fullscreen mode when running to this code block. Does any one get some solutions with how to show a child form in fullscreen mode? Thanks. Bad English, hope you get my idea.

// code
Result res = this.Context9.Device.SetDialogBoxMode(true);
if (res.IsSuccess)
Panel myFormPanel = new Panel();
Form myForm = new Form();
myForm.Location = new Point(0, 0);
myForm.TopLevel = false;
myForm.TopMost = false;
myForm.ControlBox = false;
myForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
myForm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
myForm.Size = myFormPanel.ClientSize;
myForm.Parent = _form;
myForm.Visible = true;

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement