Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to show a popup Form object in fullscreen mode

4: Adsense

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   

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




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.