コード例 #1
0
            public void MakeBullet(FrnGame form)
            {
                bullet.BackColor = Color.Black;
                bullet.Size      = new Size(10, 5);
                bullet.Tag       = "bullet";
                bullet.Left      = bulletLeft;
                bullet.Top       = bulletTop;
                bullet.BringToFront();

                form.Controls.Add(bullet);

                bulletTimer.Interval = speed;
                bulletTimer.Tick    += new EventHandler(BulletTimerEvent);
                bulletTimer.Start();
            }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrnGame f = new FrnGame();

            f.Show();
        }