Vous êtes sur la page 1sur 10

Code

Begin VB.Form Form1

Caption = "Login"

ClientHeight = 1830

ClientLeft = 6165

ClientTop = 4740

ClientWidth = 2910

LinkTopic = "Form1"

ScaleHeight = 1830

ScaleWidth = 2910

Begin VB.TextBox Text1

Height = 285

Left = 480

TabIndex = 6

Top = 2520

Width = 1575

End

Begin VB.TextBox Text2

Height = 285

IMEMode = 3 'DISABLE

Left = 480

PasswordChar = "*"

TabIndex = 5

Top = 3000

Width = 1575

End

Begin VB.CommandButton Command2

Caption = "CANCEL"

Height = 375
Left = 1560

TabIndex = 4

Top = 1320

Width = 855

End

Begin VB.CommandButton Command1

Caption = "OK"

Height = 375

Left = 480

TabIndex = 3

Top = 1320

Width = 855

End

Begin VB.Frame Frame1

Height = 1095

Left = 120

TabIndex = 0

Top = 120

Width = 2655

Begin VB.TextBox Text4

Height = 285

IMEMode = 3 'DISABLE

Left = 960

PasswordChar = "*"

TabIndex = 8

Top = 720

Width = 1575

End

Begin VB.TextBox Text3


Height = 285

Left = 960

TabIndex = 7

Top = 240

Width = 1575

End

Begin VB.Label Label2

Caption = "Password"

Height = 255

Left = 120

TabIndex = 2

Top = 720

Width = 735

End

Begin VB.Label Label1

Caption = "Username"

Height = 255

Left = 120

TabIndex = 1

Top = 240

Width = 735

End

End

End

Attribute VB_Name = "Form1"

Attribute VB_GlobalNameSpace = False

Attribute VB_Creatable = False

Attribute VB_PredeclaredId = True

Attribute VB_Exposed = False


Private Sub Command1_Click()

If Text3.Text = Text1.Text And Text4.Text = Text2.Text Then

Unload Me

MDIForm1.Show

Else

MsgBox ("Invalid Username/Password")

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Form_Load()

Text1.Text = y

Text2.Text = z

End Sub

Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"

Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"

Begin VB.Form Form2

BorderStyle = 1 'Fixed Single

Caption = "Reservation"

ClientHeight = 5160

ClientLeft = 45

ClientTop = 435

ClientWidth = 7560

LinkTopic = "Form2"

MaxButton = 0 'False

MDIChild = -1 'True
MinButton = 0 'False

ScaleHeight = 5160

ScaleWidth = 7560

Begin VB.TextBox Text72

Height = 285

Left = 7440

TabIndex = 103

Text = "72"

Top = 7560

Width = 615

End

Begin VB.TextBox Text71

Height = 285

Left = 7440

TabIndex = 102

Text = "71"

Top = 7200

Width = 615

End

Begin VB.TextBox Text70

Height = 285

Left = 7440

TabIndex = 101

Text = "70"

Top = 6600

Width = 615

End

Begin VB.TextBox Text69

Height = 285
Left = 7440

TabIndex = 100

Text = "69"

Top = 6240

Width = 615

End

Begin VB.TextBox Text68

Height = 285

Left = 7440

TabIndex = 99

Text = "68"

Top = 5640

Width = 615

End

Begin VB.TextBox Text67

Height = 285

Left = 7440

TabIndex = 98

Text = "67"

Top = 5280

Width = 615

End

Begin VB.TextBox Text66

Height = 285

Left = 120

TabIndex = 97

Text = "Text66"

Top = 8160

Width = 1215
End

Begin VB.TextBox Text65

Height = 285

Left = 1320

TabIndex = 96

Text = "Text65"

Top = 7560

Width = 975

End

Begin VB.TextBox Text64

Height = 285

Left = 1320

TabIndex = 95

Text = "Text64"

Top = 7200

Width = 975

End

Begin VB.TextBox Text63

Height = 285

Left = 1320

TabIndex = 94

Text = "Text63"

Top = 6600

Width = 975

End

Begin VB.TextBox Text62

Height = 285

Left = 1320

TabIndex = 93
Text = "Text62"

Top = 6240

Width = 975

End

Begin VB.TextBox Text61

Height = 285

Left = 1320

TabIndex = 92

Text = "Text61"

Top = 5640

Width = 975

End

Begin VB.TextBox Text60

Height = 285

Left = 1320

TabIndex = 91

Text = "Text60"

Top = 5280

Width = 975

End

Begin VB.TextBox Text59

DataField = "PNR_NO"

DataSource = "Adodc2"

Height = 285

Left = 120

TabIndex = 90

Text = "Text59"

Top = 6120

Width = 1095
End

Begin MSAdodcLib.Adodc Adodc2

Height = 330

Left = 120

Top = 5760

Width = 1215

_ExtentX = 2143

_ExtentY = 582

ConnectMode = 0

CursorLocation = 3

IsolationLevel = -1

ConnectionTimeout= 15

CommandTimeout = 30

CursorType = 3

LockType = 3

CommandType = 2

CursorOptions = 0

CacheSize = 50

MaxRecords = 0

BOFAction = 0

EOFAction = 0

ConnectStringType= 1

Appearance = 1

BackColor = -2147483643

ForeColor = -2147483640

Orientation = 0

Enabled = -1

Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Railway\Railway


Reservation.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Railway\Railway
Reservation.mdb;Persist Security Info=False"

OLEDBFile = ""

DataSourceName = ""

OtherAttributes = ""

UserName = ""

Password = ""

RecordSource = "Reservation"

Caption = "Adodc2"

BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}

Name = "MS Sans Serif"

Size = 8.25

Charset = 0

Weight = 400

Underline = 0 'False

Italic = 0 'False

Strikethrough = 0 'False

EndProperty

_Version = 393216

End

Begin VB.TextBox Text58

Height = 285

Left = 6720

TabIndex = 89

Text = "58"

Top = 7560

Width = 735

End

Vous aimerez peut-être aussi