Showing posts with label Learn VB. Show all posts
Showing posts with label Learn VB. Show all posts

29/03/2013

How to program a smart device? VB.Net code for beginners

In the series of "Learn VB.Net step by step" we have learned some basic coding of Visual basic and now it is time to implement our learning on a project.This post will cover the programming of smart Device such a Pocket PCs and Smart Phone device. This post and referred documents teach you that the programming techniques learned thus far in the  "Learn VB.Net step by step" course are also applicable to programmable device
While studying this note set you will build a project that computes the cost of providing dining services for groups scheduling social programs.

In designing a mobile application consider this:
·        You can use many of the objects and controls used for a Windows form.
·        You cannot resize the design surface as it must be an exact fit to a standard PocketPC device.
·        Because of space restrictions, limit the size of the Title Bar entry.
·        You can align controls using snap lines and the alignment tools you've already studied.
·        The Text, Visible, and Enabled properties work as they do for a Windows project.
·        The Clear method for TextBox controls is not available – you will need to assign an empty string to the Text property of a TextBox in order to clear the contents.

01/03/2013

What is condition-controlled and count-controlled loops ? VB.Net for beginners


This post discuss you to use ListBox and ComboBox controls in designing forms.  Additionally, you will learn to code loop structures, both condition-controlled (Do loops) and count-controlled loops (For...Next loops).This form includes both a ListBox and two ComboBox controls.  List type controls allow an application user to select from a list of items and to display a list of items.  




28/02/2013

How to use listbox and Combox control in windows form designing? VB.Net Code for Beginners

There are many types of ready-made controls in  visual basic where in C or C++ we have to write lot  many line code to create a control but here in visual basic all those controls are pre-codded we just have to drag and place on our windows form and everything done.So in this post I will try to show how to use listbox and combobox and other loops.

The form will make use of a new type of control – a list control.  This form includes both a ListBox and two ComboBox controls.  List type controls allow an application user to select from a list of items and to display
a list of items. 

26/02/2013

How to create general sub procedure and function in Vb.Net? some example for beginners

In any programming language we code sub procedures and function to avoid repetition of same code or a block of code so in  This post we  covers several important topics: (1) use of menus and context menus in place of and in addition to button controls, (2) writing general sub procedures and functions to modularize your code and make the logic easier to understand, and (3) the use of common dialog boxes – these are controls that are designed to support common tasks such as printing, changing the interface (fonts and colors), and saving files. Function always return value but procedure not.Sometimes a programming module will become quite large, and it makes sense from a logical design perspective to divide the module into two or more separate procedures.
·  You can store the code to a separate procedure, and then call the code from multiple button and menu control click events. 
·  You can also develop a procedure that you "reuse" by calling it from either a context menu or regular menu or button that is clicked.
·  This is a third way to avoid duplicating (copying) code in a program, along with the PerformClick method and the alteration of the Handles clause.

There are two types of general procedures: 
·   Sub procedures that perform actions, but are not associated with any specific event such as a click event.  One use of sub procedures is to set property values for a series of objects.  Another use is to perform an action such as shutting down an application by use of a standard shutdown process.
·   Function procedures (also called user-defined functions [UDFs] or simply functions) that perform actions, are not associated with any specific event, and that also return a value.   You use functions to calculate values that are returned to the calling procedure.

:

23/02/2013

What are the conditional statement in Vb.Net?Vb.Net code for beginners


Conditional statements have its own importance in any programming languages in evaluating the decision processing and same way it has it own importance in creating an application in VB.Net.This post introduces the use of various conditional statements likes, If statement for the evaluation of decisions in processing business data.  You will learn various types of If statements including the Block If, Nested If, and If-ElseIf-Else-End if statements.   You will also learn to use the Case structure with the Select Case statement to simplify decision logic.  Other topics covered:  relational operators, logical operators, control property testing, message boxes with multiple buttons, data validation, and debugging. 

17/02/2013

How to declare variables to store different types of data, and to convert text data to numeric data, to format output, and use? VB. Net for beginners

This post teaches you to write programs that involve the calculation of values for display to a form.  In order to calculate values, you will often need to compute intermediate values and this will involve the storage of values to memory locations called variables.  You will learn how to declare variables to store different types of data, and to convert text data to numeric data, to format output, and use Try-Catch blocks to catch data processing exceptions (also termed errors).  You will also use message boxes to display messages to the application user.



13/02/2013

What & How to use Variables, Constants, and Calculations in VB.Net Programming

This post teaches you to write programs that involve the calculation of values for display to a form.  In order to calculate values, you will often need to compute intermediate values and this will involve the storage of values to memory locations called variables.  You will learn how to declare variables to store different types of data, and to convert text data to numeric data, to format output, and use Try-Catch blocks to catch data processing exceptions (also termed errors).  You will also use message boxes to display messages to the application user.


How to add additional controls in User Interface Design?

This post teaches you to use additional controls to build application forms.  These controls include:  TextBox, MaskedTextBox, RichTextbox, GroupBox, CheckBox, RadioButton, and PictureBox.  You will learn how to lay out a form and set various properties to change the appearance and behavior of controls. Programming topics include clearing TextBox controls, changing text color, concatenating (adding together) strings of text, and making controls visible/invisible at run time.


10/02/2013

What is User Interface Design in VB.Net?How to use additional controls to build application forms? For beginners

This post teaches you to use additional controls to build application forms.  These controls include:  TextBox, MaskedTextBox, RichTextbox, GroupBox, CheckBox, RadioButton, and PictureBox.  You will learn how to lay out a form and set various properties to change the appearance and behavior of controls. Programming topics include clearing TextBox controls, changing text color, concatenating (adding together) strings of text, and making controls visible/invisible at run time.

08/02/2013

How and from where to obtain personal copy of Visual Studio

     You may wish to obtain a copy of Visual Studio (Professional Edition), Visual Basic (Express), or Visual Web Developer (Express) to install on your home computer.  Microsoft makes this software free to students .
        Students can complete all assignments by use of the Visual Basic Express Edition.  CMIS 460 students can complete all assignments by use of the Visual Web Developer Express Edition. You can also elect to download the full version of Visual Studio Professional if you desire by linking to the Microsoft DreamSpark Program described below. 



Where to learn Visual Basic ? Introduction to Visual Basic!

This post covers object-oriented terminology and concepts, the basic files comprising a VB project, elements of the Visual Studio integrated development environment, VB Help, and the first hands-on project introducing VB objects, properties, and methods.
What & How