Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


How to show a popup Form object in fullscreen mode


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 qileilee   Members   -  Reputation: 101

Like
0Likes
Like

Posted 07 August 2012 - 03:14 AM

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;
}

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS