Arfansyah, M.Kom. Listview : digunakan untuk menampilkan data yang bentuknya jamak.

Slides:



Advertisements
Similar presentations
Chapter 6, Slide 1Starting Out with Visual Basic 3 rd Edition Chapter 6 Sub Procedures And Functions.
Advertisements

Lists, Loops, Validation, and More
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 5- 1 STARTING OUT WITH Visual Basic 2008 FOURTH EDITION Tony Gaddis.
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
SUB PROGRAM PROCEDURE (SUB) dan FUNCTION
В проекте рассмотрены функции даты и времени: текущие дата и время, день недели, день месяца, день года, проверка на високосный год, максимальное и минимальное.
5.04 Apply Decision Making Structures
Pertemuan : 6 Basis Data Terapan
Practical Programming COMP153-08S Lecture: Repetition Continued.
Making a cartoon or slideshow. Aside VB comments An apostrophe starts a comment to end of line Some of the following slides have code with comments in.
Chapter 4: The Selection Structure Programming with Microsoft Visual Basic.NET, Second Edition.
Visual Studio 2005 Using the DataGridView Control V. Matos Cleveland State University.
Events. Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime Outline.
More on lists, exceptions, loops and validation. You can use the exception to indicate the error that occurred Private Sub btnCheck_Click(ByVal sender.
Tutorial 7: Sub and Function Procedures1 Tutorial 7 Sub and Function Procedures.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
CIS 338: ListView Control Dr. Ralph D. Westfall May, 2011.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Variable, Expressions, Statements and Operators By: Engr. Faisal ur Rehman CE-105 Fall 2007.
Menus,MonthCalender, DateTimePicker, MDI,Tree View, List View,
Data Binding to Controls Programming in C# Data Binding to Controls CSE 494R (proposed course for 459 Programming in C#) Prof. Roger Crawfis.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Typing Application Introducing Keyboard Events, Menus, Dialogs and the Dictionary.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
VB Procedures. Procedures. Sub procedure: Private/Public Sub SubName(Arguments) … End Sub Private: Can only be accessed by procedures in the same form.
Windows Forms. Architecture Wrapper around WIN32API Part of the.NET Framework Code can be in C# or VB Toolbox has forms elements (buttons, etc.) Dragging.
Tutorial 6 The Repetition Structure
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
6c – Function Procedures Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
If (UCSRA & 0x80 ) { switch(ch) case ‘u’: while ( aileronleft > 1) { lcd_clrscr(); lcd_gotoxy(1,0); lcd_puts("SW1 depressed"); x = x - 4; if ( x < 1000)
1 Advanced Computer Programming Lab Calculator Project.
4-1 Chapter 4 The Selection Process in VB.NET. 4-2 Learning Objectives Understand the importance of the selection process in programming. Describe the.
VAT Calculator program Controls Properties Code Results.
Pay Example (PFirst98) Please use speaker notes for additional information!
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
6b – Sub Procedure With Parameters Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Using ADO.Net to Build a Login System Dr. Ron Eaglin.
1 Microsoft® Visual Basic®.NET Language # 2. 2 Flow-Control Statements If … End If Select Case … End Select For… Next Do … Loop Exit.
List Boxes and Combo Boxes Provides a list of items to select from Various styles — choose based on Space available Need to select from an existing list.
Word Processor Version.01 EME 4411 Week 5. The Scroll Bars.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
Introduction to VB programming Dr. John P. Abraham UTPA Chapters 2 & 3.
Visual Basic Declaring Variables Dim x as Integer = 0 In the statement above, x is being declared as an Integer (whole number) and is initialised.
COMPUTER PROGRAMMING I Apply Procedures to Develop List Box and Combo Box Objects.
Visual Basic Fundamental Concepts
Chapter 9 Programming Based on Events
A variable is a name for a value stored in memory.
Apply Procedures to Develop Message, Input, and Dialog Boxes
Introduction to VB programming
للمزيد زورونا على موقعنا الإلكتروني:
CS 3870/CS 5870 Web User Controls Events (II).
Visual Basic..
حلقات التكرار.
المحاضرة الأولى Lab(1) أ.ساره الأحمدي برمجة حاسب 2.
Windows Forms GUI: A Deeper Look
1.الدوال Function 2.الاجراءاتSub Procedure 3.وحده نمطيه Add Module
String Variable, Methods and Properties
CIS16 Application Development and Programming using Visual Basic.net
Control Structures Part B - Message and Input Boxes
CS 3870 Web User Control Events.
String Variable, Methods and Properties
Part 3 Saving (without the Save button)
String Variable, Methods and Properties
String Variable, Methods and Properties
Part 2 Saving the Dictionary
YOUR text YOUR text YOUR text YOUR text
Visual Basic and File Streaming
CIS 338: Images on Forms Dr. Ralph D. Westfall May, 2009.
Repetition - Counting and Accumulating
Presentation transcript:

Arfansyah, M.Kom

Listview : digunakan untuk menampilkan data yang bentuknya jamak.

Public Class Form1 Dim nomor As Integer Sub Bersih() txtNama.Text = "" txtKelas.Text = "" txtPersen.Text = "" End Sub Sub Tampilkan(ByVal No As Integer) txtNama.Text = LVAbsen.Items(No).SubItems(0).Text txtKelas.Text = LVAbsen.Items(No).SubItems(1).Text txtPersen.Text = LVAbsen.Items(No).SubItems(2).Text End Sub Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load LVAbsen.Columns.Add("Nama", 200, HorizontalAlignment.Left) LVAbsen.Columns.Add("Kelas", 100, HorizontalAlignment.Center) LVAbsen.Columns.Add("Persentase", 120, HorizontalAlignment.Center) End Sub

Private Sub btnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSimpan.Click nomor = LVAbsen.Items.Count LVAbsen.Items.Add(txtNama.Text) LVAbsen.Items(nomor).SubItems.Add(txtKelas.Text) LVAbsen.Items(nomor).SubItems.Add(txtPersen.Text) End Sub Private Sub btnCari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCari.Click Dim Cari As String Cari = InputBox("Masukkan Nama Mahasiswanya = ", "Masukkan Nama") For a As Integer = 0 To LVAbsen.Items.Count - 1 If LVAbsen.Items(a).SubItems(0).Text.ToUpper = Cari.ToUpper Then Tampilkan(a) Exit Sub End If Next a MessageBox.Show("Data tidak ditemukan ", "Maaf tidak ketemu") End Sub Private Sub btnHapusSemua_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHapusSemua.Click LVAbsen.Items.Clear() Bersih() End Sub

Private Sub txtPersen_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtPersen.KeyPress If Not (Char.IsNumber(e.KeyChar) Or Char.IsControl(e.KeyChar)) Then e.Handled = True MessageBox.Show("Masukkan nilai angka 0-100", "Terima Kasih") End If End Sub Private Sub txtPersen_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPersen.TextChanged If Not (Val(txtPersen.Text) >= 0 And Val(txtPersen.Text) <= 100) Then MessageBox.Show("Masukkan nilai angka 0-100", "Terima Kasih") txtPersen.Text = "" End If End Sub End Class