02 | using System.Windows.Forms; |
04 | namespace WindowsFormsApp2 { |
05 | public partial class Array : Form { |
06 | public Array( ) { InitializeComponent( ); } |
08 | private void addName( ) { |
09 | string [ ] studentName = new string [5]; |
10 | for ( int i = 0; i < 5; i++ ) { |
11 | studentName[i] = Microsoft.VisualBasic.Interaction.InputBox( |
12 | "Enter the student name:" ); |
13 | nameList.Items.Add( studentName[i] ); |
16 | private void Start_Click( object sender, EventArgs e ) { |
17 | nameList.Items.Clear( ); |
20 | private void Exit_Click( object sender, EventArgs e ) { |
|