Wednesday, December 18, 2019

Display Odd and Even Numbers Using Two Listbox in VB.NET

I wrote this program to display a series of numbers from 1 to 50 in Odd and Even Numbers Using ListBox in Visual Basic NET as my programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.

Thank you very much for your help and support.


Sample Program Output


Program Listing

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label1.Text = "Odd Numbers"
        Label2.Text = "Even Numbers"

        ' Odd Numbers
        Dim a As Integer

        For a = 0 To 50
            If a Mod 2 <> 0 Then
                ListBox1.Items.Add(a)
            End If
        Next a

        ' Even Numbers
        Dim b As Integer

        For b = 0 To 50
            If b Mod 2 = 0 Then
                ListBox2.Items.Add(b)
            End If
        Next b

    End Sub
End Class


No comments:

Post a Comment