# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Controlling the scrolling of a textbox

Cpu Scheduling Sample in C++ Language -
Getting the No of processes and Burst Time. "First come First served" Algorithm. Shortest job first algorithm with preemption. Shortest job First Algorithm with NonPreemption. Cpu

Check Whether a Number is Prime or Not -
A prime number is a positive integer which is divisible only by 1 and itself. Example: 2, 3, 5, 7, 11, 13... If the for loop terminates when the test expression of loop i <= n/2 is false, it is a

Using Local variable in The C++ Language -
Local variables are declared inside the braces of any "user defined function", main function, loops or control statements(if, if-else etc) and have their scope limited inside those "braces"

C Language Codes Find Length of a String -
How to find 'Length of a string' without using in-built library function strlen() in C language. Effective way to find length of string without using strlen() function. In the C every string is

Find Length of Strings Without use Library -
Its easier to find the length of the string using given library function, but in this program we are finding the "Length of the String" without using Library Function. In the above program

Computes DFT Discrete Fourier Transform -
C++ Program to compute the 'coefficients' of the DFT (Discrete Fourier Transform) directly. In math, the discrete Fourier transform (DFT) converts finite list of equally spaced samples

Add Two Matrix Multi-Dimensional Arrays -
In this program, user is asked to entered the number of rows r and columns c. The value of r and c should be less than 88 in this program. The user is asked to enter elements of two...

Calculate Addition or Subtraction & Trace -
Calculate the addition or subtraction & trace of 2 matrices. Here trace of the matrix is the sum of the elements on the main diagonal i.e the diagonal from the upper left to the lower