VERSION 5.00
Begin VB.Form frmDefinedConnection 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "FookIT! :: Defined Connection"
   ClientHeight    =   1905
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4080
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1905
   ScaleWidth      =   4080
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdLogout 
      Caption         =   "Logout"
      Height          =   255
      Left            =   2280
      TabIndex        =   7
      Top             =   1560
      Width           =   1695
   End
   Begin VB.CommandButton cmdLogin 
      Caption         =   "Login"
      Height          =   255
      Left            =   240
      TabIndex        =   6
      Top             =   1560
      Width           =   1695
   End
   Begin VB.ComboBox cboNationality 
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      ItemData        =   "frmDefinedConnection.frx":0000
      Left            =   1920
      List            =   "frmDefinedConnection.frx":0013
      TabIndex        =   5
      Text            =   "www.habbo.co.uk/"
      Top             =   960
      Width           =   2055
   End
   Begin VB.TextBox txtPassword 
      Appearance      =   0  'Flat
      Height          =   285
      IMEMode         =   3  'DISABLE
      Left            =   1920
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   600
      Width           =   2055
   End
   Begin VB.TextBox txtUsername 
      Appearance      =   0  'Flat
      Height          =   285
      Left            =   1920
      TabIndex        =   3
      Top             =   240
      Width           =   2055
   End
   Begin VB.Label Label2 
      Caption         =   "Habbo nationality"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   6.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   2
      Top             =   960
      Width           =   1815
   End
   Begin VB.Label Label1 
      Caption         =   "Habbo password"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   6.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   600
      Width           =   1815
   End
   Begin VB.Label lblUsername 
      Caption         =   "Habbo username"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   6.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   1815
   End
End
Attribute VB_Name = "frmDefinedConnection"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cboNationality_Click()
' Logout
frmMain.Web.Navigate "http://" & frmDefinedConnection.cboNationality.Text & "account/logout"

End Sub

Private Sub cmdLogin_Click()
' Logout
frmMain.Web.Navigate "http://" & frmDefinedConnection.cboNationality.Text & "account/logout"
' login.
mdlLogin.DefinedConnection frmDefinedConnection.txtUsername.Text, frmDefinedConnection.txtPassword.Text, frmDefinedConnection.cboNationality.Text
End Sub

Private Sub cmdLogout_Click()
' Logout.
frmMain.Web.Navigate "http://" & frmDefinedConnection.cboNationality.Text & "account/logout"
End Sub

Private Sub Form_Unload(Cancel As Integer)
' Stops closing.
Cancel = 1
Me.Hide
End Sub
