做实验8遇到的问题小结

问题1:numericUpDown 中的属性 this->numericUpDown1->Increment 不能设置成小数。例如

this->numericUpDown1->Increment = 0.5 ;     //会报错—————-提示无法转换。

解决:this->numericUpDown1->Increment = Decimal(0.5);    强制转换,VC2005里面Decimal属性已经变动。详情看MSDN吧。


问题2:按钮的DialogResult 设置了 OK 或 Cancel 却不能实现关闭窗口.

解决:再Ex_5_StuDataDlg.cpp 找到入口,去掉

Application::Run(gcnew Form1());

更改为   

 Form1 ^pDlg = gcnew Form1();
 pDlg->ShowDialog();


问题2:VC 水平蚀线 制作不能设置高度。

解决:将 Label 的 第二个属性 AutoSize 设置为False  因为默认是ture 所以不能改。


待续。。。

版权所有© HzlzH | 本文采用 BY-NC-SA 进行授权
转载需注明 转自: 《做实验8遇到的问题小结

随机文章

{ Leave a Reply ? }

  1. Anonymous China Internet Explorer Windows

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)