每次程序启动时,表单位置都会更改 [英] Form location changes each time the program starts

查看:104
本文介绍了每次程序启动时,表单位置都会更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我不确定这个问题是否适合这个问题,但无论如何..我正在尝试使用directX绘制一条简单的线条,  ;每次代码进入行(每个代码exec。):


设备设备=新设备(0,DeviceType.Hardware,this,CreateFlags.SoftwareVerextProcessing,presentParameters);


它会更改表单位置。


这种情况发生在运行exec的6次循环中。意思是位置值在一个循环周期内变化,以便每6个exec重新获得相同的值。


为什么会发生这种情况,我该如何解决这个问题呢?


 


解决方案

您好shahar1975,


您可以考虑将其发布在以下更合适的论坛上,以获得更有效的回复。谢谢!


http://forums.create.msdn的.com /论坛/ Default.aspx的?的GroupID = 7


Hello all

I'm not sure this is the right place for this question, but anyhow..I'm trying to draw a simple line using directX, and everytime time the code enters the line(each code exec.):

Device device = new Device(0, DeviceType.Hardware,this,CreateFlags.SoftwareVerextProcessing,presentParameters);

it changes the form location.

That happens in a cycles of 6 times running exec. meaning the location values vary in a cyclic period to regain the same values every 6 exec.

Why does this happens and how do I fix this?

 

解决方案

Hi shahar1975,

You can consider posting it at the following more appropriate forum for more efficient responses. Thanks!

http://forums.create.msdn.com/forums/default.aspx?GroupID=7


这篇关于每次程序启动时,表单位置都会更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆