# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Move your form without a tittle bar (by control)

Print Strong Numbers between an interval -
First give a meaningful name to our function, say "printStrongNumbers()". Along with this we must define function to find factorial of a number, say long long fact(int x);. Next we...

Program Prints Natural Numbers in Range -
Using above logic you can easily find a way to print natural numbers in range. If not here is a hint. Input start limit from user and store it in some variable say start. Input end limit from

Checks If an Integer is Odd or Even In C++ -
A formal definition of an even number is that it is an integer of the form 'n = 2k', where k is an integer; it can then be shown that an odd number is an integer of the form "n = 2k + 1".

C Language Find Frequency of Characters -
In C Coding, the string entered by the user is stored in variable str. Then, the user is asked to enter the character whose frequency is to be found. This is stored in variable ch. Now,

C Swap two numbers using XOR Operator -
C programming code to swap two numbers using XOR operator. Generally swaping two number requires three variables. Let's take look at procedure of swaping two numbers.

C++ Sample Codes Implement Merge Sort -
Merge-Sort is based on an algorithmic design pattern called Divide & Conquer. It forms tree structure. The height of the tree will be log(n) And we merge n element at every level of the

C Program Codes Search Element in Array -
C program example read elements in an array and search whether an element exists in the array or not. Program to search an elements in an array linearly. There are two searching

C Language Code find First and Last Digit -
C Language program code to find first & last digit. Input a number from user & store it in some variable say num. Find last digit using modulo division by 10 lastDigit = num % 10.