private void focusList() { this.listInstanceMainPanel.Focus(); LotteryListControl listControl = this.getCurrentListControl(); if (listControl != null) { listControl.Focus(); } }
public void addControls() { //LotteryListControl lotteryListControl = new LotteryListControl(); lotteryListControl = new LotteryListControl(); lotteryListControl.TabIndex = 0; lotteryListControl.Focus(); //lotteryListControl.resetCurrentCell(); this.listInstanceMainPanel.Controls.Add(lotteryListControl); this.listInstanceMainPanel.Focus(); }