SlideShare a Scribd company logo
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.label1 = New System.Windows.Forms.Label
Me.label2 = New System.Windows.Forms.Label
Me.label3 = New System.Windows.Forms.Label
Me.Label4 = New System.Windows.Forms.Label
Me.Label5 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.Label7 = New System.Windows.Forms.Label
Me.n = New System.Windows.Forms.TextBox
Me.nm = New System.Windows.Forms.TextBox
Me.jb = New System.Windows.Forms.TextBox
Me.gp = New System.Windows.Forms.TextBox
Me.gb = New System.Windows.Forms.TextBox
Me.tj = New System.Windows.Forms.TextBox
Me.gl = New System.Windows.Forms.ComboBox
Me.ListView1 = New System.Windows.Forms.ListView
Me.p = New System.Windows.Forms.Button
Me.s = New System.Windows.Forms.Button
Me.e = New System.Windows.Forms.Button
Me.SuspendLayout()
'
'label1
'
Me.label1.AutoSize = True
Me.label1.Location = New System.Drawing.Point(0, 0)
Me.label1.Name = "label1"
Me.label1.Size = New System.Drawing.Size(21, 13)
Me.label1.TabIndex = 0
Me.label1.Text = "nip"
'
'label2
'
Me.label2.AutoSize = True
Me.label2.Location = New System.Drawing.Point(0, 26)
Me.label2.Name = "label2"
Me.label2.Size = New System.Drawing.Size(33, 13)
Me.label2.TabIndex = 1
Me.label2.Text = "nama"
'
'label3
'
Me.label3.AutoSize = True
Me.label3.Location = New System.Drawing.Point(0,
Me.label3.Name = "label3"
Me.label3.Size = New System.Drawing.Size(51, 13)
Me.label3.TabIndex = 2
Me.label3.Text = "golongan"
'
'Label4
'
Me.Label4.AutoSize = True
Me.Label4.Location = New System.Drawing.Point(0,
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(42, 13)
Me.Label4.TabIndex = 3
Me.Label4.Text = "jabatan"
'
'Label5
'
Me.Label5.AutoSize = True
Me.Label5.Location = New System.Drawing.Point(0,
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(56, 13)
Me.Label5.TabIndex = 4
Me.Label5.Text = "gaji pokok"
'
'Label6
'
Me.Label6.AutoSize = True
Me.Label6.Location = New System.Drawing.Point(0,
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(48, 13)
Me.Label6.TabIndex = 5
Me.Label6.Text = "tunjangn"
'
'Label7
'
Me.Label7.AutoSize = True
Me.Label7.Location = New System.Drawing.Point(0,
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(54, 13)
Me.Label7.TabIndex = 6
Me.Label7.Text = "gaji bersih"
'
'n
'
Me.n.Location = New System.Drawing.Point(84, 0)
Me.n.Name = "n"
Me.n.Size = New System.Drawing.Size(100, 20)
Me.n.TabIndex = 7
'

57)

87)

120)

149)

187)
'nm
'
Me.nm.Location = New System.Drawing.Point(84, 26)
Me.nm.Name = "nm"
Me.nm.Size = New System.Drawing.Size(100, 20)
Me.nm.TabIndex = 8
'
'jb
'
Me.jb.Location = New System.Drawing.Point(84, 87)
Me.jb.Name = "jb"
Me.jb.Size = New System.Drawing.Size(100, 20)
Me.jb.TabIndex = 10
'
'gp
'
Me.gp.Location = New System.Drawing.Point(84, 113)
Me.gp.Name = "gp"
Me.gp.Size = New System.Drawing.Size(100, 20)
Me.gp.TabIndex = 11
'
'gb
'
Me.gb.Location = New System.Drawing.Point(84, 180)
Me.gb.Name = "gb"
Me.gb.Size = New System.Drawing.Size(100, 20)
Me.gb.TabIndex = 12
'
'tj
'
Me.tj.Location = New System.Drawing.Point(84, 142)
Me.tj.Name = "tj"
Me.tj.Size = New System.Drawing.Size(100, 20)
Me.tj.TabIndex = 13
'
'gl
'
Me.gl.FormattingEnabled = True
Me.gl.Items.AddRange(New Object() {"III A", "III B", "III C"})
Me.gl.Location = New System.Drawing.Point(79, 57)
Me.gl.Name = "gl"
Me.gl.Size = New System.Drawing.Size(121, 21)
Me.gl.TabIndex = 14
'
'ListView1
'
Me.ListView1.Location = New System.Drawing.Point(128, 220)
Me.ListView1.Name = "ListView1"
Me.ListView1.Size = New System.Drawing.Size(253, 97)
Me.ListView1.TabIndex = 15
Me.ListView1.UseCompatibleStateImageBehavior = False
'
'p
'
Me.p.Location = New System.Drawing.Point(194, 323)
Me.p.Name = "p"
Me.p.Size = New System.Drawing.Size(75, 23)
Me.p.TabIndex = 16
Me.p.Text = "proses"
Me.p.UseVisualStyleBackColor = True
'
's
'
Me.s.Location = New System.Drawing.Point(194, 359)
Me.s.Name = "s"
Me.s.Size = New System.Drawing.Size(75, 23)
Me.s.TabIndex = 17
Me.s.Text = "simpan"
Me.s.UseVisualStyleBackColor = True
'
'e
'
Me.e.Location = New System.Drawing.Point(194, 388)
Me.e.Name = "e"
Me.e.Size = New System.Drawing.Size(75, 23)
Me.e.TabIndex = 18
Me.e.Text = "exit"
Me.e.UseVisualStyleBackColor = True
'
'Form1
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(493, 423)
Me.Controls.Add(Me.e)
Me.Controls.Add(Me.s)
Me.Controls.Add(Me.p)
Me.Controls.Add(Me.ListView1)
Me.Controls.Add(Me.gl)
Me.Controls.Add(Me.tj)
Me.Controls.Add(Me.gb)
Me.Controls.Add(Me.gp)
Me.Controls.Add(Me.jb)
Me.Controls.Add(Me.nm)
Me.Controls.Add(Me.n)
Me.Controls.Add(Me.Label7)
Me.Controls.Add(Me.Label6)
Me.Controls.Add(Me.Label5)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.label3)
Me.Controls.Add(Me.label2)
Me.Controls.Add(Me.label1)
Me.Name = "Form1"
Me.Text = "form penggajian"
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents
Friend WithEvents
Friend WithEvents
Friend WithEvents
Friend WithEvents
Friend WithEvents

label1
label2
label3
Label4
Label5
Label6

As
As
As
As
As
As

System.Windows.Forms.Label
System.Windows.Forms.Label
System.Windows.Forms.Label
System.Windows.Forms.Label
System.Windows.Forms.Label
System.Windows.Forms.Label
Friend
Friend
Friend
Friend
Friend
Friend
Friend
Friend
Friend
Friend
Friend
Friend

WithEvents
WithEvents
WithEvents
WithEvents
WithEvents
WithEvents
WithEvents
WithEvents
WithEvents
WithEvents
WithEvents
WithEvents

Label7 As System.Windows.Forms.Label
n As System.Windows.Forms.TextBox
nm As System.Windows.Forms.TextBox
jb As System.Windows.Forms.TextBox
gp As System.Windows.Forms.TextBox
gb As System.Windows.Forms.TextBox
tj As System.Windows.Forms.TextBox
gl As System.Windows.Forms.ComboBox
ListView1 As System.Windows.Forms.ListView
p As System.Windows.Forms.Button
s As System.Windows.Forms.Button
e As System.Windows.Forms.Button

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
gl.Items.Add("III A")
gl.Items.Add("III B")
gl.Items.Add("III C")
ListView1.GridLines = True
ListView1.View = View.Details
ListView1.FullRowSelect = True
ListView1.Columns.Add("nip")
ListView1.Columns.Add("nama", 80)
ListView1.Columns.Add("golongan", 80)
ListView1.Columns.Add("jabatan", 80)
ListView1.Columns.Add("gaji pokok", 150)
ListView1.Columns.Add("tunjangan", 150)
ListView1.Columns.Add("gaji bersih", 150)
End Sub
Private Sub n_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles n.TextChanged
If n.Text = "112" Then
nm.Text = "sazmikha"
ElseIf n.Text = "113" Then
nm.Text = "ewiz"
ElseIf n.Text = "114" Then
nm.Text = "verischa"
ElseIf n.Text = "115" Then
nm.Text = "belvem"
ElseIf n.Text = "116" Then
nm.Text = "maysyaroh"
End If
End Sub
Private Sub gl_SelectedIndexChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles gl.SelectedIndexChanged
If gl.Text = "III A" Then
jb.Text = "karyawan"
gp.Text = "2000000"
tj.Text = "500000"
ElseIf gl.Text = "III B" Then
jb.Text = "supervisor"
gp.Text = "3500000"
tj.Text = "1000000"
ElseIf gl.Text = "III C" Then
jb.Text = "manajer"
gp.Text = "5000000"
tj.Text = "2000000"
End If
End Sub
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles p.Click
gb.Text = Val(gp.Text) + Val(tj.Text)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles s.Click
Dim Arr(6) As String
Arr(0) = n.Text
Arr(1) = nm.Text
Arr(2) = gl.Text
Arr(3) = jb.Text
Arr(4) = gp.Text
Arr(5) = tj.Text
Arr(6) = gb.Text
Dim listitem As ListViewItem
listitem = New ListViewItem
listitem = ListView1.Items.Add(Arr(0))
listitem.SubItems.Add(Arr(1))
listitem.SubItems.Add(Arr(2))
listitem.SubItems.Add(Arr(3))
listitem.SubItems.Add(Arr(4))
listitem.SubItems.Add(Arr(5))
listitem.SubItems.Add(Arr(6))
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles e.Click
Close()
End Sub
End Class

More Related Content

PDF
Inventory management
PDF
Calculator code
DOC
Sql Queries
PDF
Introduction to python programming
ODP
Very basic functional design patterns
DOCX
Inventory aging report using oracle discoverer desktop
DOC
Open microsoft visual studio/tutorialoutlet
Inventory management
Calculator code
Sql Queries
Introduction to python programming
Very basic functional design patterns
Inventory aging report using oracle discoverer desktop
Open microsoft visual studio/tutorialoutlet

What's hot (16)

PDF
Windows Forms For Beginners Part 5
PPTX
WEB TECHNOLOGIES Unit 2
DOC
@Prompt
PDF
Read data from Excel spreadsheets into R
PPTX
Sql fundamentals group by part2
PPTX
Vs c# lecture2
PPTX
Bootcamp sql fundamental
PDF
Windows Forms For Beginners Part - 3
PPTX
Views
PPTX
Vs c# lecture3
PPTX
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
DOC
PPTX
Vp lecture 6 ararat
PDF
Windows Forms For Beginners Part - 4
DOCX
Cis 407 i lab 4 of 7
PPT
Session 3 Bai 3 ve winform
Windows Forms For Beginners Part 5
WEB TECHNOLOGIES Unit 2
@Prompt
Read data from Excel spreadsheets into R
Sql fundamentals group by part2
Vs c# lecture2
Bootcamp sql fundamental
Windows Forms For Beginners Part - 3
Views
Vs c# lecture3
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
Vp lecture 6 ararat
Windows Forms For Beginners Part - 4
Cis 407 i lab 4 of 7
Session 3 Bai 3 ve winform
Ad

Similar to Coding java.txt (20)

DOCX
ExplanationDesignerCodeGlobal.Microsoft.VisualBasic.Compiler.docx
DOCX
Teclado word
PDF
Vb.net iii
DOCX
please code in c#- please note that im a complete beginner- northwind.docx
PPTX
Session 8 connect your universal application with database .. builders & deve...
PPT
AIA101.2.Access Queries Accelerated
PDF
Membuat aplikasi penjualan buku sederhana
PDF
Stata Cheat Sheets (all)
PDF
Cheat Sheet for Stata v15.00 PDF Complete
DOCX
Visual basic bt0082
PPT
XPages Workshop: Concepts And Exercises
PDF
Vb net1
PDF
Java Unit 1 Project
PPT
Csphtp1 12
PPT
12 gui concepts 1
DOCX
Implement a Javascript application that allows the user to enter strin.docx
PDF
Stata cheat sheet: data processing
PDF
Visualbasic tutorial
PDF
python-cheatsheets.pdf
PDF
python-cheatsheets that will be for coders
ExplanationDesignerCodeGlobal.Microsoft.VisualBasic.Compiler.docx
Teclado word
Vb.net iii
please code in c#- please note that im a complete beginner- northwind.docx
Session 8 connect your universal application with database .. builders & deve...
AIA101.2.Access Queries Accelerated
Membuat aplikasi penjualan buku sederhana
Stata Cheat Sheets (all)
Cheat Sheet for Stata v15.00 PDF Complete
Visual basic bt0082
XPages Workshop: Concepts And Exercises
Vb net1
Java Unit 1 Project
Csphtp1 12
12 gui concepts 1
Implement a Javascript application that allows the user to enter strin.docx
Stata cheat sheet: data processing
Visualbasic tutorial
python-cheatsheets.pdf
python-cheatsheets that will be for coders
Ad

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
Teaching material agriculture food technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Machine learning based COVID-19 study performance prediction
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Digital-Transformation-Roadmap-for-Companies.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Teaching material agriculture food technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
Diabetes mellitus diagnosis method based random forest with bat algorithm
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Cloud computing and distributed systems.
NewMind AI Weekly Chronicles - August'25 Week I
Machine learning based COVID-19 study performance prediction
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
20250228 LYD VKU AI Blended-Learning.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf

Coding java.txt

  • 1. <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try If disposing AndAlso components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) End Try End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. <System.Diagnostics.DebuggerStepThrough()> _ Private Sub InitializeComponent() Me.label1 = New System.Windows.Forms.Label Me.label2 = New System.Windows.Forms.Label Me.label3 = New System.Windows.Forms.Label Me.Label4 = New System.Windows.Forms.Label Me.Label5 = New System.Windows.Forms.Label Me.Label6 = New System.Windows.Forms.Label Me.Label7 = New System.Windows.Forms.Label Me.n = New System.Windows.Forms.TextBox Me.nm = New System.Windows.Forms.TextBox Me.jb = New System.Windows.Forms.TextBox Me.gp = New System.Windows.Forms.TextBox Me.gb = New System.Windows.Forms.TextBox Me.tj = New System.Windows.Forms.TextBox Me.gl = New System.Windows.Forms.ComboBox Me.ListView1 = New System.Windows.Forms.ListView Me.p = New System.Windows.Forms.Button Me.s = New System.Windows.Forms.Button Me.e = New System.Windows.Forms.Button Me.SuspendLayout() ' 'label1 ' Me.label1.AutoSize = True Me.label1.Location = New System.Drawing.Point(0, 0) Me.label1.Name = "label1" Me.label1.Size = New System.Drawing.Size(21, 13) Me.label1.TabIndex = 0 Me.label1.Text = "nip" ' 'label2 ' Me.label2.AutoSize = True Me.label2.Location = New System.Drawing.Point(0, 26)
  • 2. Me.label2.Name = "label2" Me.label2.Size = New System.Drawing.Size(33, 13) Me.label2.TabIndex = 1 Me.label2.Text = "nama" ' 'label3 ' Me.label3.AutoSize = True Me.label3.Location = New System.Drawing.Point(0, Me.label3.Name = "label3" Me.label3.Size = New System.Drawing.Size(51, 13) Me.label3.TabIndex = 2 Me.label3.Text = "golongan" ' 'Label4 ' Me.Label4.AutoSize = True Me.Label4.Location = New System.Drawing.Point(0, Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(42, 13) Me.Label4.TabIndex = 3 Me.Label4.Text = "jabatan" ' 'Label5 ' Me.Label5.AutoSize = True Me.Label5.Location = New System.Drawing.Point(0, Me.Label5.Name = "Label5" Me.Label5.Size = New System.Drawing.Size(56, 13) Me.Label5.TabIndex = 4 Me.Label5.Text = "gaji pokok" ' 'Label6 ' Me.Label6.AutoSize = True Me.Label6.Location = New System.Drawing.Point(0, Me.Label6.Name = "Label6" Me.Label6.Size = New System.Drawing.Size(48, 13) Me.Label6.TabIndex = 5 Me.Label6.Text = "tunjangn" ' 'Label7 ' Me.Label7.AutoSize = True Me.Label7.Location = New System.Drawing.Point(0, Me.Label7.Name = "Label7" Me.Label7.Size = New System.Drawing.Size(54, 13) Me.Label7.TabIndex = 6 Me.Label7.Text = "gaji bersih" ' 'n ' Me.n.Location = New System.Drawing.Point(84, 0) Me.n.Name = "n" Me.n.Size = New System.Drawing.Size(100, 20) Me.n.TabIndex = 7 ' 57) 87) 120) 149) 187)
  • 3. 'nm ' Me.nm.Location = New System.Drawing.Point(84, 26) Me.nm.Name = "nm" Me.nm.Size = New System.Drawing.Size(100, 20) Me.nm.TabIndex = 8 ' 'jb ' Me.jb.Location = New System.Drawing.Point(84, 87) Me.jb.Name = "jb" Me.jb.Size = New System.Drawing.Size(100, 20) Me.jb.TabIndex = 10 ' 'gp ' Me.gp.Location = New System.Drawing.Point(84, 113) Me.gp.Name = "gp" Me.gp.Size = New System.Drawing.Size(100, 20) Me.gp.TabIndex = 11 ' 'gb ' Me.gb.Location = New System.Drawing.Point(84, 180) Me.gb.Name = "gb" Me.gb.Size = New System.Drawing.Size(100, 20) Me.gb.TabIndex = 12 ' 'tj ' Me.tj.Location = New System.Drawing.Point(84, 142) Me.tj.Name = "tj" Me.tj.Size = New System.Drawing.Size(100, 20) Me.tj.TabIndex = 13 ' 'gl ' Me.gl.FormattingEnabled = True Me.gl.Items.AddRange(New Object() {"III A", "III B", "III C"}) Me.gl.Location = New System.Drawing.Point(79, 57) Me.gl.Name = "gl" Me.gl.Size = New System.Drawing.Size(121, 21) Me.gl.TabIndex = 14 ' 'ListView1 ' Me.ListView1.Location = New System.Drawing.Point(128, 220) Me.ListView1.Name = "ListView1" Me.ListView1.Size = New System.Drawing.Size(253, 97) Me.ListView1.TabIndex = 15 Me.ListView1.UseCompatibleStateImageBehavior = False ' 'p ' Me.p.Location = New System.Drawing.Point(194, 323) Me.p.Name = "p" Me.p.Size = New System.Drawing.Size(75, 23)
  • 4. Me.p.TabIndex = 16 Me.p.Text = "proses" Me.p.UseVisualStyleBackColor = True ' 's ' Me.s.Location = New System.Drawing.Point(194, 359) Me.s.Name = "s" Me.s.Size = New System.Drawing.Size(75, 23) Me.s.TabIndex = 17 Me.s.Text = "simpan" Me.s.UseVisualStyleBackColor = True ' 'e ' Me.e.Location = New System.Drawing.Point(194, 388) Me.e.Name = "e" Me.e.Size = New System.Drawing.Size(75, 23) Me.e.TabIndex = 18 Me.e.Text = "exit" Me.e.UseVisualStyleBackColor = True ' 'Form1 ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.ClientSize = New System.Drawing.Size(493, 423) Me.Controls.Add(Me.e) Me.Controls.Add(Me.s) Me.Controls.Add(Me.p) Me.Controls.Add(Me.ListView1) Me.Controls.Add(Me.gl) Me.Controls.Add(Me.tj) Me.Controls.Add(Me.gb) Me.Controls.Add(Me.gp) Me.Controls.Add(Me.jb) Me.Controls.Add(Me.nm) Me.Controls.Add(Me.n) Me.Controls.Add(Me.Label7) Me.Controls.Add(Me.Label6) Me.Controls.Add(Me.Label5) Me.Controls.Add(Me.Label4) Me.Controls.Add(Me.label3) Me.Controls.Add(Me.label2) Me.Controls.Add(Me.label1) Me.Name = "Form1" Me.Text = "form penggajian" Me.ResumeLayout(False) Me.PerformLayout() End Sub Friend WithEvents Friend WithEvents Friend WithEvents Friend WithEvents Friend WithEvents Friend WithEvents label1 label2 label3 Label4 Label5 Label6 As As As As As As System.Windows.Forms.Label System.Windows.Forms.Label System.Windows.Forms.Label System.Windows.Forms.Label System.Windows.Forms.Label System.Windows.Forms.Label
  • 5. Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend Friend WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents WithEvents Label7 As System.Windows.Forms.Label n As System.Windows.Forms.TextBox nm As System.Windows.Forms.TextBox jb As System.Windows.Forms.TextBox gp As System.Windows.Forms.TextBox gb As System.Windows.Forms.TextBox tj As System.Windows.Forms.TextBox gl As System.Windows.Forms.ComboBox ListView1 As System.Windows.Forms.ListView p As System.Windows.Forms.Button s As System.Windows.Forms.Button e As System.Windows.Forms.Button Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load gl.Items.Add("III A") gl.Items.Add("III B") gl.Items.Add("III C") ListView1.GridLines = True ListView1.View = View.Details ListView1.FullRowSelect = True ListView1.Columns.Add("nip") ListView1.Columns.Add("nama", 80) ListView1.Columns.Add("golongan", 80) ListView1.Columns.Add("jabatan", 80) ListView1.Columns.Add("gaji pokok", 150) ListView1.Columns.Add("tunjangan", 150) ListView1.Columns.Add("gaji bersih", 150) End Sub Private Sub n_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles n.TextChanged If n.Text = "112" Then nm.Text = "sazmikha" ElseIf n.Text = "113" Then nm.Text = "ewiz" ElseIf n.Text = "114" Then nm.Text = "verischa" ElseIf n.Text = "115" Then nm.Text = "belvem" ElseIf n.Text = "116" Then nm.Text = "maysyaroh" End If End Sub Private Sub gl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gl.SelectedIndexChanged If gl.Text = "III A" Then jb.Text = "karyawan" gp.Text = "2000000" tj.Text = "500000" ElseIf gl.Text = "III B" Then jb.Text = "supervisor" gp.Text = "3500000" tj.Text = "1000000" ElseIf gl.Text = "III C" Then
  • 6. jb.Text = "manajer" gp.Text = "5000000" tj.Text = "2000000" End If End Sub Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles p.Click gb.Text = Val(gp.Text) + Val(tj.Text) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles s.Click Dim Arr(6) As String Arr(0) = n.Text Arr(1) = nm.Text Arr(2) = gl.Text Arr(3) = jb.Text Arr(4) = gp.Text Arr(5) = tj.Text Arr(6) = gb.Text Dim listitem As ListViewItem listitem = New ListViewItem listitem = ListView1.Items.Add(Arr(0)) listitem.SubItems.Add(Arr(1)) listitem.SubItems.Add(Arr(2)) listitem.SubItems.Add(Arr(3)) listitem.SubItems.Add(Arr(4)) listitem.SubItems.Add(Arr(5)) listitem.SubItems.Add(Arr(6)) End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles e.Click Close() End Sub End Class