public void CreateDevice()
{
PresentationParameters pp = new PresentationParameters();
pp.IsFullScreen = false;
pp.BackBufferHeight = this.m_renderControl.Height;
pp.BackBufferWidth = this.m_renderControl.Width;
pp.DeviceWindowHandle = this.m_renderControl.Handle;
this.m_graphicsDevice = new GraphicsDevice(GraphicsAdapter.DefaultAdapter, GraphicsProfile.HiDef, pp);
}