private void StubForm_Load(object sender, EventArgs e) { ShrinkStubForm(); cbSelectedExecution.SelectedIndex = 0; cbTargetType.SelectedIndex = 0; btnUnloadTarget.Location = btnLoadTargets.Location; btnUnloadTarget.Size = btnLoadTargets.Size; //uh oh magic numbers //this will break if the combobox font isnt Segoe UI, 12pt int magicWidth = cbTargetType.Size.Width - (411 - 387); int magicHeight = cbTargetType.Size.Width - (36 - 29); int magicX = cbTargetType.Location.X - (14 - 11); int magicY = cbTargetType.Location.Y - (14 - 11); lbTargetTypeDisplay.Font = cbTargetType.Font; //lbTargetTypeDisplay.Size = new Size(magicX, magicY); //lbTargetTypeDisplay.Location = new Point(magicWidth, magicHeight); lbTargetTypeDisplay.Visible = true; //--------------------------------------------------------------- Colors.SetRTCColor(ProgramColor, this); FileWatch.Start(); }
private void StubForm_Load(object sender, EventArgs e) { cbSelectedExecution.SelectedIndex = 0; cbTargetType.SelectedIndex = 0; UICore.SetRTCColor(Color.Lavender, this); FileWatch.Start(); }