# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Resizing A Form To Fit The Screen

C++ Program Calculate GCD of 2 Integers -
Examples on different ways to calculate GCD of two integers (for both Positive & Negative integers) using "Loops and Decision" making statements. The "Largest integer" which can

The Guessing Game code C programming -
Declare variable to be guess. Declare variable to store guessed date. Declare variable to test for invalid input. Display the intro and directions. Get the users guess and store it.

C Codes Sort Even Odd Elements of Array -
C program to input elements in an array from user and sort all even and odd elements of the given array separately without using any other array. If minimum element of the array

C Codes Size of Structure Sizeof Operator -
C structure is collection of elements of the different data types. Size of the structure can be evaluated using "sizeof operator". Sizeof is operator not function. Sizeof operator takes

Program Convert Hexadecimal to Decimal -
To convert a number from "hexadecimal" into equivalent decimal format "in C++", enter the hexadecimal number to convert it to decimal to display the equivalent value in "decimal" as

Returns a String representation of Integer -
Converting an integer to a string with a fixed width. If the width is too small, the minimum width is assumed. Generate digit characters in reverse order. Shift the string to the right

C++ Matrix Addition Operation of Adding -
Two dimensional array in C++, represented in the form of rows and columns, also suitable with matrix. For multi dimensional array, the element with indices i,j would have "address"

Code find maximum using ladder if.else.if -
Instead of using Nested If Else. Lets combine 2 or more conditions together using Logical Operators. A number j1 among 3 numbers j1, j2 and j3 is said maximum if j1 > j2 and j1 > j3.