private void AtIdSupplement_Load(object sender, EventArgs e) { if (startChar == "#") { this.ClientSize = new Size(this.TextId.Width, this.TextId.Height); //プロパティで切り替えできるように this.TextId.ImeMode = ImeMode.Inherit; } }