0% found this document useful (0 votes)
22 views2 pages

Sourcecode Form Utama: "DD MMM Yyyy" "HH:MM:SS"

This document contains code for a main form class in VB.NET. When the form loads, it initializes variables, shows a splash screen, sets various child forms as MDI children, and shows a login form. If login is successful, it makes the main form visible and starts a timer that updates date and time labels. It also contains event handler subs for a help menu item that shows an about form, and menu items that show employee and attendance forms maximized.

Uploaded by

Cwithoo Zee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

Sourcecode Form Utama: "DD MMM Yyyy" "HH:MM:SS"

This document contains code for a main form class in VB.NET. When the form loads, it initializes variables, shows a splash screen, sets various child forms as MDI children, and shows a login form. If login is successful, it makes the main form visible and starts a timer that updates date and time labels. It also contains event handler subs for a help menu item that shows an about form, and menu items that show employee and attendance forms maximized.

Uploaded by

Cwithoo Zee
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Sourcecode Form Utama

Public Class frmUtama Private Sub frmUtama_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Me.Visible = False InitVar() frmSplash.ShowDialog(Me) frmPresensi.MdiParent = Me frmKaryawan.MdiParent = Me frmShift.MdiParent = Me frmBagian.MdiParent = Me frmSubbag.MdiParent = Me Me.Visible = True frmLogin.ShowDialog(Me) If Not g_bLogin Then Me.Close() Me.Dispose() End If End Sub Private Sub tmrUtama_Tick(sender As System.Object, e As System.EventArgs) Handles tmrUtama.Tick lblStatUtama5.Text = Format(Now, "dd MMM yyyy") lblStatUtama6.Text = Format(Now, "HH:mm:ss") End Sub Private Sub mnuBantuan_Click(sender As System.Object, e As System.EventArgs) Handles mnuBantuan.Click frmAbout.ShowDialog(Me) End Sub Private Sub mnuTampPresensi_Click(sender As System.Object, e As System.EventArgs) Handles mnuTampPresensi.Click frmPresensi.Show() frmPresensi.WindowState = FormWindowState.Maximized End Sub Private Sub mnuTampKaryawan_Click(sender As System.Object, e As System.EventArgs) Handles mnuTampKaryawan.Click frmKaryawan.Show() frmKaryawan.WindowState = FormWindowState.Maximized End Sub

You might also like