Write two TextChanged event handlers for txtNumber and txtMax that call a DisplayLottoNumbers function whenever either of the input textboxes are changed.
Show the Load event handler for the form and the SelectedIndexChanged event handler for the combo box.