Sign in to follow this  
Maxi Ng

Can I create a Device without Windows.Form?

Recommended Posts

I have an example from CodeProject call 3d_terrain_visualisation. It has a device creation like this // declare the Device object device = new Microsoft.DirectX.Direct3D.Device(0, Microsoft.DirectX.Direct3D.DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams); which passes a System.Windows.Forms.Form as a parameter. This makes the image display inside a form. Could I control the display directly and display my stuff without using a form? is the form necessary?

Share this post


Link to post
Share on other sites
The short answer is: yes, a form is necessary. You need some sort of window to attach the device too. Even the desktop is a window of sorts. What you want to do it sounds like is create a full screen window, at which point, you just set the parameters of the device to run full screen.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this