Senin, 10 Oktober 2011

Kegiatan Ku 5

Selalu berengi jam jikalau sudah jam 4,,

supaya tidak telat pulang dan melanjutkan KULIAH lagi


huuuhuuu

Kegiatan Ku 4

Selalu tidak tepat waktu untuk makan siang,,

anakkk ajaibbb banget gw ne

haaaa

Kegiatan Ku 3

Sampai di kantor,,


melihat muka-muka orang yang itu-itu ajahh

capeeee dehh
:(

Kegiatan Ku 2

Berangkat dari rumah jam setengah 7 untuk pergi mencari sesuap nasi,,

Lebaiiii akhhhh

Kegiatan Ku 1

Memulai aktifitas ku mulai dengan bangun tidur jam 6 pagi

Creating Your First Application

In this section, we will not go into the technical aspects of the WB programming, but is aware of it. Now you can try the examples below:

Example 2.1.1 is a simple program. First of all, you need to launch Microsoft Visual Basic. Normally standard form Form1 is available, you can start a new project. Now, double click on Form1, the source code window Form1, as shown in Figure 2.1 will be seen. The upper part of the source code window consists of a list of objects and of related events or procedures. Figure 2.1, the object appears in the form and procedure related to what is a burden.

When you click on the object's box, drop-down list to see the list of objects, you have been added to the form as shown in Figure 2.2. Here you can see a form of a command button, whose name has been Command1, a label with the name of Label1 and PictureBox, whose name has been picture1. Similarly, when you click on the procedure box, a list of related object is shown in Figure 2.3. Some of the procedures related to the object form, is to activate, click DblClick (which means Double-Click), DragDrop, and keyPress, etc. Each object has its own procedures. You can select an object and enter codes for any of the action in order to perform certain tasks.

You do not have to worry about in the beginning and end of statements (ie Private Sub Form_Load ....... End Sub.) Just the key between the lines for more than two statements, just as it is presented here. When you start the program, you have to be a surprise that there was no indication. In order to show the output of the program, add Form1.show statement as the example of 2.1.1, or you can use Form_Activate () case, the procedure as set out in the example 2.1.2. Print Command does not mean using the printing of the printer, it means that by showing the production of the computer screen. Now, press the F5 or click on the Run button, and run the program and you get output, as shown in Figure 2.4.

You can also perform simple arithmetic calculations, which can be seen, for example, 2.1.2. VB * used to describe a report on the operator and / to denote division of the operator. The results are shown in Figure 2.3, if the results are arranged vertically.

Selasa, 04 Oktober 2011

Visual Basic .NET

Microsoft Visual Basic .NET adalah sebuah alat untuk mengembangkan dan membangun aplikasi yang bergerak di atas sistem .NET Framework, dengan menggunakan bahasa BASIC. Dengan menggunakan alat ini, para programmer dapat membangun aplikasi Windows Forms, Aplikasi web berbasis ASP.NET, dan juga aplikasi command-line. Alat ini dapat diperoleh secara terpisah dari beberapa produk lainnya (seperti Microsoft Visual C++, Visual C#, atau Visual J#), atau juga dapat diperoleh secara terpadu dalam Microsoft Visual Studio .NET. Bahasa Visual Basic .NET sendiri menganut paradigma bahasa pemrograman berorientasi objek yang dapat dilihat sebagai evolusi dari Microsoft Visual Basic versi sebelumnya yang diimplementasikan di atas .NET Framework. Peluncurannya mengundang kontroversi, mengingat banyak sekali perubahan yang dilakukan oleh Microsoft, dan versi baru ini tidak kompatibel dengan versi terdahulu.
 
CONTOH PROGRAM VISUAL BASIC.NET
Berikut ini adalah contoh lain dari program Visual Basic yang menggunakan objek CheckBox dan ComboBox untuk menghitung jumlah kredit mata kuliah yang diambil oleh seorang mahasiswa (masing-masing mata kuliah = 3 kredit):
Dim total As Integer
total = 0 ' awal dari jumlah kredit total
If (CheckBox1.Checked = True) Then 'boleh memilih semua checkbox
            total += 3
        End If
        If (CheckBox2.Checked = True) Then
            total = total + 3
        End If
        If (CheckBox3.Checked = True) Then
            total = total + 3
        End If
If (ComboBox1.SelectedIndex = 0) Then 'hanya bisa memilih satu
            total = total + 3
        ElseIf (ComboBox1.SelectedIndex = 1) Then
            total = total + 3
        ElseIf (ComboBox1.SelectedIndex = 2) Then
            total = total + 3 
        End If
Label3.Text = CStr(total) ' hasil kredit total yang diambil