public ComboScoreControl() { InitializeComponent(); feedbackControl = new VisualFeedbackControl { Height = 80, Left = 1000, Top = 180, Width = 500 }; Controls.Add(feedbackControl); feedbackControl.FinishSetup(); }
public punch_count() { bellRung = new SoundPlayer(@"soundEffect\old-fashioned-bell.wav"); missedHit = new SoundPlayer(@"soundEffect\MissedHit.wav"); InitializeComponent(); feedbackControl = new VisualFeedbackControl(); feedbackControl.Left = 100; feedbackControl.Top = 10; feedbackControl.Height = 50; feedbackControl.Width = 400; Controls.Add(feedbackControl); feedbackControl.FinishSetup(); Header.Left = tableLayoutPanel1.Left + ((tableLayoutPanel1.Width - Header.Width) / 2); }