# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Creating a faded background on a form

A Templated Stack Data Structure sample -
Using Templates so that any type of data can be stored in stack without multiple defination of class. Contains "Location of Topmost data" pushed onto stack. Sets the top location to -1

C Programming Displays text Hello World -
C programs to displaying Hello World on the screen. In the first program we are displaying the message using printf function and in the second program we are calling a user defined

C++ language Declare a Variable as Static -
In the C++ Programming, The static keyword allows a variable to maintain its value among different function calls. If the value of a static variable changes when the variable has been

C Standard Form of a Quadratic Equation -
The determinant tells the nature of the roots. b*b-4ac: Determinant of quadratic equation. If determinant is greater than 0, the roots are real and different. If determinant is equal to 0

2D-Drawing Circles, Arcs, Rectangle, Lines -
This 2D-Drawing Program is used for drawing circles, arcs, rectangle, lines and many more. Controls for the two-dimensional drawing. Enter radius of circle, enter radius, starting...

Efficient Implementations of Disjoint Sets -
numElements is the initial number of disjoint sets. Union "Two Disjoint" sets. For simplicity, we assume "root1 and root2" are distinct and represent set names. "root1" is the root of set

Find the Largest Two Numbers in an Array -
C Program code calculates the largest of two numbers in a given Array. First it accepts an array, then compares the elements and finds which is the largest two element in a given...

Find the Number of Integers Divisible by 5 -
C Program to which calculates the number of integers divisible by 5 in the given range. This C program takes the range as input and finds the number of integers divisible by 5 in range.