Jump to content
  • Advertisement
Sign in to follow this  
qileilee

How to show a popup Form object in fullscreen mode

This topic is 2175 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!