# Visual Basic Programming Code Examples

## Visual Basic > Forms Code Examples

### Changing the backcolor of a form menu

C Programming Language Median Sample -
A 'median' value is the value at the center of a sorted list. To median we need to sort the list in ascending or descending order. The List of 3, 5, 2, 7, 3 as our input list, to find out median

The C Language Print the Floyd's Triangle -
Floyd's triangle, named after 'Rober Floyd', is a Right Angled Triangle, which is made using natural numbers. Starts from 1, consecutively selects the next Greater number in Sequence.

Generate All Possible Subsets With Exactly -
Algorithm takes the input of "n" data element and 'prints all possible' combination of length 'k'. It maintains a boolean array of length 'n'. If the corresponding boolean value is true, then

Making Your Functions to be Inline in C++ -
An inline function is a function in which body is inserted in the "place of its call". There are two ways to make your functions to be inline. The first one consists in 'simple definition' of

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

C++ Implements Fermat's Little Theorem -
Program demonstrates the implementation of Fermat's Little Theorem. For the modular "multiplicative inverse" to exist, the number and 'Modular' must be 'Coprime'. Calculates

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

C++ Generate N Number of Passwords of -
C++ Program to generate N passwords each of 'length M'. Problem focuses on finding the N permutations each of length M. Generates random number between 1 and 10. Enter the