Programming Category
One ‘Sub’ to rule them all!
So far we have be using Sub Procedures which have been generated when we double click on a button and an event method is called. This lesson we are going to create our own “Custom” Sub which will help us make our code more efficient. If you haven’t already you need to download and run [...]
Many ways to skin a cat!
Last lesson we looked at using If Statements and Checkboxes to control styles applied to fonts. Once you successfully ran your program you would had found that there were issues with using the “CheckState.Checked” and “CheckState.Unchecked”. This lesson we will look at two methods to solve those issues. Remember that with programming there is more [...]
Programming: Classic Controls
The Checkbox is classic control in Visual Basic 2010. It allows the user to elect one or more item by checking the checkbox/checkboxes concerned. The check box control displays a check mark when it is selected. It is commonly used to present a Yes/No or True/False (Boolean) election to the user. You can use a [...]
Programming: Converting Data Types
Last lesson we played with receiving inputs from a user and then performing a mathematical sum with the value. When you are converting one datatype class to another, you must realise that the result of that conversion could vary depending on the type of conversion that you perform. For example if you try to convert a Decimal [...]
Introduction to Programming
For Year 10 – Computer Science we just started learning to Visual Basic as a part of the programming course work. As this is first time many of you have encountered a programming language many of the concepts and terms will be very foreign, but rest assured if you stick with it you will get [...]
Decimal to Binary Conversion: Method 3
And….. the 3rd and final Sub Module for converting Binary using the ‘Alternative Subtraction Method’. Public Sub Method3(ByVal num1 As Integer) ‘ ############################################# ‘ METHOD #3 – Alternative Subtraction Method ‘ ############################################# Dim A, B, C, D, E, F, G, H, R1, R2, R3, R4, R5, R6, R7, R8, T1, T2, T3, T4, T5, T6, [...]
Decimal to Binary Conversion: Method 1
Below is the sub module solution for converting Decimal to Binary using the Division Method. As with the other method please post any ways you think the code could be improved. ‘ ############################## ‘ METHOD #1 – Division Method ‘ ############################## Public Sub Method1(ByVal num1 As Integer) ‘declare variables Dim working As String = String.Empty [...]
Decimal to Binary Conversion: Method 2 [UPDATED]
In class yesterday we were set the task of creating a program which can convert decimal numbers to binary. The program must use modules and demonstrate all three conversion methods outlined by the Curriculum Council Specification Guide. The idea of this activity is for students to recognise decimal, binary (and eventually) hexadecimal numbers and be [...]
Microsoft Silverlight
Silverlight is a powerful development platform for creating rich media applications and business applications for the Web, Desktop and mobile devices. Silverlight is basically a free plug in powered by the .NET framework that is compatible across mulitple browsers, devices and operating systems to bring a new level of interactivity wherever the web works. With [...]
Game Design – Minecraft
Several games studios latley have tried to find a sweet spot for user’s to bring there own passion and ideas into that game. Other then Call of Duty, there are many new games around that have been created by one or two people that have no story-line at all, but is as large as other games [...]
Getting to know PHP
PHP is a scripting language used around the world on mostley every site today. PHP makes what Facebook is today, even this website that you are viewing now uses PHP. If you want to learn how to create a page with PHP, read on… Every file that contain’s PHP will have to include ‘.php’ as [...]













