# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### How to center a form on a parent window.

C++ Code Deletes Elements from an Array -
To "delete element" from an array in C++, you have to first ask to the user to enter the array size then ask to enter the array element, ask to enter the element which is "to be deleted".

C Program Depth First Binary Tree Search -
C program, using iteration, performs a Depth First Search traversal. Depth-first search DFS is an algorithm for 'Traversing or Searching a Tree', tree structure or graph. The concept of

Find Maximum between 2 Numbers using -
C Program input two numbers from user and find maximum between two numbers using switch case. Input two numbers. Store it in a variable say j1 & j2. Switch expression j1 > j2

Program to Find Maximum and Minimum -
Program to find maximum in array elements using recursion and c conditional operator. C program code to find maximum & minimum elements in an array using recursion. How to

C Language A Puzzle Finding the Number -
The main logic lies in displaying the numbers in the screen. The X & Y coordinate of each function is calculated with respect to mx "maximum of x value" & my "maximum of y

C language simple program dice throwing -
C Programming dice throwing code. Seed the random number generator. The highest score of the two dice wins. Get a random number from 1 to 6. Calculate the total of the two...

C Count Trailing Zeros in a Binary Number -
C language input any number from user and count number of trailing zeros in the given number using bitwise operator. How to find total number of trailing zeros in any given...

Program Finds the Longest Path in a DAG -
Program to find longest path in DAG. Given a weighted directed acyclic graph and a source vertex s in it, find the longest distances from s to all other vertices in the given graph. Create