Back to Browse

Parallel Arrays Windows Form App Example C#

1.2K views
Nov 4, 2020
4:19

#ParallelArrays #WindowsFormCSharp #MidTermPrepProgramming Parallel Arrays Form Example C# Like, Share, And Subscribe | Professor Saad Yousuf Watch Our All Videos On This : http://www.youtube.com/ProfessorSaad Subscribe Our Channel : http://www.youtube.com/ProfessorSaad Playlists: https://www.youtube.com/user/ssby79/playlists Parallel Arrays Form Example C# CODE: int[] ids = { 101, 102, 103 }; string[] names = { "Sam","Carlos","Amy" }; string[] major = { "IT", "Business", "Civil Engineering" }; int id = Convert.ToInt32(textID.Text); Boolean found = false; for(int i=0;i<ids.Length;i++) { if(id == ids[i]) { textName.Text = names[i]; textMajor.Text = major[i]; found = true; break; } } if(found == false) { textName.Text = "ID not found"; textMajor.Text = "ID not found"; }

Download

0 formats

No download links available.

Parallel Arrays Windows Form App Example C# | NatokHD