问题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 所以不能改。
待续。。。

{ Leave a Reply ? }