我正在使用<密码>代码>和<代码>PictureBox实施方案。 在每一间歇时间,我想要把1个单位移至右边。
我的守则是:
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
pictureBox1->Location = System::Drawing ::Point (1, 28);
bounceOne->Enabled = true;
}
private: System::Void bounceOne_Tick(System::Object^ sender, System::EventArgs^ e) {
(pictureBox1->Location).X = (pictureBox1->Location).X + 1;
}
However, at runtime this isn t doing what I want and don t know why it isn t working. Any advice?