Nov 23, 2009

Creating Your First Application

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > .NET (VB, C# & J#)

Creating Your First Application

abdo
QUOTE
In this section, we are not going into the technical aspects of VB programming; just have a feel of it. Now, you can try out the examples below:

Example 2.1.1 is a simple program. First of all, you have to launch Microsoft Visual Basic. Normally, a default form Form1 will be available for you to start your new project. Now, double click on form1, the source code window for form1 as shown in figure 2.1 will appear. The top of the source code window consists of a list of objects and their associated events or procedures. In figure 2.1, the object displayed is Form and the associated procedure is Load.

When you click on the object box, the drop-down list will display a list of objects you have inserted into your form as shown in figure 2.2. Here, you can see a form, command button with the name Command1, a Label with the name Label1 and a PictureBox with the name Picture1. Similarly, when you click on the procedure box, a list of procedures associated with the object will be displayed as shown in figure 2.3. Some of the procedures associated with the object Form are Activate, Click, DblClick (which means Double-Click) , DragDrop, keyPress and etc. Each object has its own set of procedures. You can always select an object and write codes for any of its procedure in order to perform certain tasks.

You do not have to worry about the beginning and the end statements (i.e. Private Sub Form_Load.......End Sub.); Just key in the lines in between the above two statements exactly as are shown here. When you run the program, you will be surprise that nothing shown up .In order to display the output of the program, you have to add the Form1.show statement like in Example 2.1.1 or you can just use Form_Activate ( ) event procedure as shown in example 2.1.2. The command Print does not mean printing using a printer but it means displaying the output on the computer screen. Now, press F5 or click on the run button to run the program and you will get the output as shown in figure 2.4.

You can also perform simple arithmetic calculations as shown in example 2.1.2. VB uses * to denote the multiplication operator and / to denote the division operator. The output is shown in figure 2.3, where the results are arranged vertically.

Figure 2.1 Source Code Window

[attachment=520:figure2.jpg]Figure 2.2: List of Objects

[attachment=519:figure1.jpg]

 

 

 


Comment/Reply (w/o sign-up)

yordan
Nice job, thanks.
Do not forget, next time, to mention your sources.
Your text is coming from http://www.vbtutor.net/lesson2.html
And also do not forget to put between quotes the text written by somebody else.
It is not forbidden here to display somebody else's texte, you simply have to put it between quotes. If you forget the quotes, it's not honest, it's stealing somebody's intellectual property, and it's against our forum rules. mad.gif
I insterted the quotes for you today. Do not forget to put the quotes next time.
Regards
Yordan

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : creating, application

  1. C# Tutorial : Lesson 7 - Creating Value Types & Reference Types - Part II
    (2)
  2. C# Tutorial : Lesson 6 - Creating Value Types & Reference Types - Part I
    (0)
    Value Types & Reference Types In C#, Variables are either value types or reference types
    depending on what they store, values or references. By reference we imply that the variable holds
    the memory address of another location where the actual value is stored. All built in data types -
    Int, Char, String, Float, Boolean, etc are value types while classes are reference types. The
    following is a diagrammatic representation of these two types. In this picture there are two
    variables Num1 and Num2. Both of these being integer variables store the values directly.....
  3. Installing Vb.net
    Part 1 - Obtaining, installing, and creating your first application (4)
    Well I didn't see anything on here about how to get started with vb .net, so I figured that I
    would write a small tutorial on how to get started with programming in VB .Net. If I get a lot of
    positive responses, I'll continue, if not I won't. Step 1: Obtaining Visual Basic .NET
    Microsoft in recent years has made a giant step in allowing hobbyists to learn program without
    having the burden of buying expensive software. This is a great business idea on their part, because
    it allows more people to become interested in their software, therefore, increasing th....
  4. Lesson #1 - Introduction To C#
    Console Application (1)
    This tutorial will help get you started with C# Sharp. These tutorials will assume that you are
    using the Visual Studio environment. If you are just curious to test out some code, then you can
    copy and paste this code into your CS file, however, before doing so, make sure to name your project
    the same as the namespace on the code. But since this first program is fairly easy, it will not
    hurt to type it out. It is fairly easy and short. Also, this program is highly commented so it
    should be easy to follow along. Comments will have 2 forward slashes before them '....

    1. Looking for creating, application

See Also,

*SIMILAR VIDEOS*
Searching Video's for creating, application
advertisement



Creating Your First Application

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com