# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Sort, Select and Return the selected items from a ListView

C Programming coding Calendar example -
This is because a leap year does not strictly fall on every fourth year. If a year is divisible by 4, then it is a leap year, but if that year is divisible by 100, then it is not a leap year.

Simple C++ Coding for Single Inheritance -
Start the C++ program. Declare the base class emp. Define and declare the function get() to get the employee details. Declare the derived class salary. "Declare and define" the function

Program Finds Prime Factors of a Number -
Factors of a number that are prime numbers are called as "Prime Factors" of that number. For example: 2 and 5 are the prime factors of 10. Logic to check prime factors of a number.

C Build Binary Tree if Inorder or Postorder -
C Program to Build Binary Tree if inorder or postorder traversal as input. Create a new node. Create a balanced binary search tree. Insert a node in the tree. Create a node and

C Print Range of Fundamental Data Types -
C Program Code to Convert the number of bytes into bits by multiplying the bytes with 8. Use two functions namely signed_one() and unsigned_one() for calculating the range

Print Perfect numbers between an interval -
Declare function to print all Perfect Numbers in given range. First give meaningful name to the function. Say "printPerfect()" will print all perfect numbers in given range. Along with...

C Search for an Element in the Linked List -
Search an element in the linked list without using Recursion. C Program, using iteration, Searches for an Element in a Linked List. A Linked List is ordered set of Data Elements,

Simple Queue Programs in C++ Language -
The "queue? size?" function would return the length of the line, and the ?empty? function would return true only if there was nothing in the line. "Simple Queue" C++ Example, array