Ese error me ha dado cuando los parametros del device son incorrectos para crearse, repasalos
With PresentParam
.EnableAutoDepthStencil = True
.AutoDepthStencilFormat = Microsoft.DirectX.Direct3D.DepthFormat.D16
.BackBufferFormat = Microsoft.DirectX.Direct3D.Format.A8R8G8B8
.BackBufferCount = 1
.BackBufferWidth = 1280
.BackBufferHeight = 800
.Windowed = True
.PresentationInterval = Microsoft.DirectX.Direct3D.PresentInterval.Default
.SwapEffect = Microsoft.DirectX.Direct3D.SwapEffect.Flip
End With
Device = New Microsoft.DirectX.Direct3D.Device(0, Microsoft.DirectX.Direct3D.DeviceType.Hardware, Me.PictureBox1, Microsoft.DirectX.Direct3D.CreateFlags.SoftwareVertexProcessing, PresentParam)