Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Visual Basic Programming Code Examples

Visual Basic > Forms Code Examples

Making a textbox resizable





Finds Factorial of Number using Recursion - Declare recursive function to find factorial of a number. First let us give a meaningful name to our function, say fact(). Factorial Function accepts an integer input whose factorial is to

How to using Switch in a C program code - C programming using switch: The number chosen. Get the choice input. Pick a number between 1 and 20. Check for invalid selection. Selects invalid choice message. Jumps to the

Swapping numbers Function Call by Value - Before we discuss function call by value, lets understand the terminologies that we'll use while explaining this: Actual parameters: The parameters that appear in function calls and

Park-Miller Random Numbers Generation - C++ Program to generate 'random' numbers using Park-Miller algorithm. general formula of a random number generator (RNG) of this type is: 'X_{k+1} = g X(k) mod n'. To generate

C Code Merge & Sort Elements of 2 Arrays - We have to sort only when left<right because when left=right it is anyhow sorted. Sort the left part. Sort the right part. Merge the two sorted parts. Merge functions merges the...

Implement Two Stacks using Single Array - C Programming code implements two Stacks using a Single Array & Check for Overflow & Underflow. A Stack is a linear data structure in which a data item is inserted and deleted...

C++ Program to Solve Knapsack Problem - This is a C++ Program to 'knapsack problem' using dynamic programming. The knapsack problem or "rucksack problem" is a problem in combinatorial optimization: given a set of

Program Implement Doubly Ended Queue - Inserting element into the "deque". Deleting element from the deque. "Insert" element in "doubly ended queue". Enter the value to be inserted. Element inserted into empty deque.