Posts Tagged < 水平蚀线 >

做实验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 水平蚀线 [...]

1 comment