# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

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

C++ Computes Cross Product of 2 Vectors -
C++ Program to find the cross product of two vectors. In mathematics, the cross product or vector product is a "Binary Operation" on two vectors in three-dimensional space. It results

Encoding a Message Matrix Multiplication -
This C++ Program perform 'encoding matrix' using a hidden-key. "Encoding" is performed using "matrix multiplication" between given matrix and 'key matrix'. Enter the number of

C Coding Checks the Character is Alphabet -
How to check whether a character is alphabet or not in C programming. Every printable and nonprintable symbol is treated as a character and has an ASCII value. ASCII value is unique

C StrnCat Concatenate n Characters of str2 -
C function 'strncat' concatenates n characters of str2 to string str1. Program concatenates n characters of str2 to string str1. A 'terminator' char ('\0') will always be appended at the end

C Performs Quick Sort on A Set of Entries -
Perform Quick Sort on a set of entries from a file using recursion. The following C program, using recursion, performs 'quick sort'. A quick sort is a sorting algorithm with complexity of

C Programming calculator use Switch Case -
Step by step descriptive logic to create menu driven calculator that performs all basic math operations. Input 2 numbers and a Character from user in the given format. Store them in

C Program to generate nth Fibonacci term -
C Code Declare recursive function to find nth Fibonacci term. Assign a meaningful name to the function, say fibo(). The function accepts an integer hence update function declaration

Reading From and Writing to a File in C++ -
While writing C++, coders write information to a file from the program using the "stream" insertion operator (<<) and reads information using the "Stream Extraction" Operator (>>).