Anda di halaman 1dari 2

Public Class Home

#Region "To Move Borderless Form"


Const WM_NCHITTEST As Integer = &H84
Const HTCLIENT As Integer = &H1
Const HTCAPTION As Integer = &H2
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Select Case m.Msg
Case WM_NCHITTEST
MyBase.WndProc(m)
If m.Result = HTCLIENT Then m.Result = HTCAPTION
Case Else
MyBase.WndProc(m)
End Select
End Sub
#End Region
Private Sub Search_Click(ByVal sender As System.Object, ByVal e As System.Ev
entArgs) Handles Search.Click
S_I.Visible = True
S_PO.Visible = True
S_POP.Visible = True
S_S.Visible = True
S_Sale.Visible = True
End Sub
Private Sub Transaction_Click(ByVal sender As System.Object, ByVal e As Syst
em.EventArgs) Handles Transaction.Click
T_PO.Visible = True
T_PO_P.Visible = True
T_S.Visible = True
End Sub
Private Sub Entry_Click(ByVal sender As System.Object, ByVal e As System.Eve
ntArgs) Handles Entry.Click
E_S.Visible = True
E_I.Visible = True
E_IT.Visible = True
End Sub
Private Sub E_IT_Click(ByVal sender As System.Object, ByVal e As System.Even
tArgs) Handles E_IT.Click
Dim ItemType As New Entry_ItemType
ItemType.ShowDialog()
End Sub
Private Sub E_I_Click(ByVal sender As System.Object, ByVal e As System.Event
Args) Handles E_I.Click
Dim Item As New Entry_Item
Item.ShowDialog()
End Sub
Private Sub E_S_Click(ByVal sender As System.Object, ByVal e As System.Event
Args) Handles E_S.Click
Dim supplier As New Entry_Supplier
supplier.ShowDialog()
End Sub
Private Sub T_S_Click(ByVal sender As System.Object, ByVal e As System.Event
Args) Handles T_S.Click
Dim Sale As New Transaction_Sale
Sale.ShowDialog()
End Sub
Private Sub T_PO_P_Click(ByVal sender As System.Object, ByVal e As System.Ev
entArgs) Handles T_PO_P.Click
Dim PurchaseOrder As New Transaction_PurchaseOrder_Payment
PurchaseOrder.ShowDialog()
End Sub
Private Sub T_PO_Click(ByVal sender As System.Object, ByVal e As System.Even
tArgs) Handles T_PO.Click
Dim OrderPayment As New Transaction_PurchaseOrder
OrderPayment.ShowDialog()
End Sub
Private Sub S_Sale_Click(ByVal sender As System.Object, ByVal e As System.Ev
entArgs) Handles S_Sale.Click
Dim Search_Sale As New Report_Sale
Search_Sale.ShowDialog()
End Sub
Private Sub S_I_Click(ByVal sender As System.Object, ByVal e As System.Event
Args) Handles S_I.Click
Dim Search_Item As New Report_Item
Search_Item.ShowDialog()
End Sub
Private Sub S_POP_Click(ByVal sender As System.Object, ByVal e As System.Eve
ntArgs) Handles S_POP.Click
Dim Search_PurchaseOP As New Report_PurchaseOrder_Payment
Search_PurchaseOP.ShowDialog()
End Sub
Private Sub S_PO_Click(ByVal sender As System.Object, ByVal e As System.Even
tArgs) Handles S_PO.Click
Dim Search_PurchaseO As New Report_PurchaseOrder
Search_PurchaseO.ShowDialog()
End Sub
Private Sub S_S_Click(ByVal sender As System.Object, ByVal e As System.Event
Args) Handles S_S.Click
Dim Search_Supplier As New Report_Supplier
Search_Supplier.ShowDialog()
End Sub
Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClic
ked
System.Diagnostics.Process.Start("Help.chm")
End Sub
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClic
ked
Application.Exit()
End Sub
End Class

Anda mungkin juga menyukai