コード例 #1
0
 private void form_item_LocationChanged(object sender, EventArgs e)
 {
     if (this.OwnedForms.Count() > 0)
     {
         form_craft f = (form_craft)this.OwnedForms[0];
         f.Location = new Point(this.Location.X + this.Size.Width, this.Location.Y);
     }
 }
コード例 #2
0
        private void btn_craft_Click(object sender, EventArgs e)
        {
            btn_craft.Enabled = false;
            form_craft f = new form_craft();

            f.Owner = this;
            f.Controls.Find("txt_item_name", true)[0].Text = cmb_name.Items[cmb_name.SelectedIndex].ToString();
            f.Shown += delegate
            {
                f.check_craft();
            };
            f.Show();
        }