how to run this code solve me the errors in picture Public Class Form1 ''Double click the form and write below code Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles...



how to run this code

solve me the errors in picture


Public Class Form1
    ''Double click the form and write below code
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

        ''Create an array of string type for country names (sample names)

        Dim countryNames As String() = {
            "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Artigua",
            "Antarctica", "Argentina", "Armenia", "Australia"
            }

        ''Add countryNames to the countryListBox

        countryListBox.Items.AddRange(countryNames)
    End Sub
End Class


Find a Country<br>Afghanistan<br>Albania<br>Algeria<br>Andorra<br>Angola<br>Artigua<br>Antarctica<br>Argentina<br>Amenia<br>Programmed Bysenan akhtar<br>

Extracted text: Find a Country Afghanistan Albania Algeria Andorra Angola Artigua Antarctica Argentina Amenia Programmed Bysenan akhtar
* BC30420 'Sub Main' was not found in 'CountryName'.<br>O BC30451 'countryListBox' is not declared. It may be inaccessible due to its protection level.<br>CountryName<br>vbc<br>1<br>Active<br>CountryName<br>Form1.vb<br>10<br>Active<br>

Extracted text: * BC30420 'Sub Main' was not found in 'CountryName'. O BC30451 'countryListBox' is not declared. It may be inaccessible due to its protection level. CountryName vbc 1 Active CountryName Form1.vb 10 Active

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here