home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 4_2005-2006.ISO / data / Zips / PassBox___201883982006.psc / PassBox / Forms / Form1.frm next >
Text File  |  2006-09-08  |  8KB  |  243 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "PassBox Control Test [Version 0.8]"
  4.    ClientHeight    =   5640
  5.    ClientLeft      =   60
  6.    ClientTop       =   450
  7.    ClientWidth     =   6345
  8.    BeginProperty Font 
  9.       Name            =   "Tahoma"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   400
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    ScaleHeight     =   282
  19.    ScaleMode       =   2  'Point
  20.    ScaleWidth      =   317.25
  21.    StartUpPosition =   2  'CenterScreen
  22.    Begin VB.CommandButton Command1 
  23.       Caption         =   "Close"
  24.       Height          =   375
  25.       Left            =   4920
  26.       TabIndex        =   16
  27.       Top             =   5160
  28.       Width           =   1215
  29.    End
  30.    Begin Project1.PassBox PassBox4 
  31.       Height          =   315
  32.       Left            =   180
  33.       TabIndex        =   14
  34.       Top             =   3780
  35.       Width           =   5235
  36.       _ExtentX        =   9234
  37.       _ExtentY        =   556
  38.       Text            =   ""
  39.       CueBanner       =   "Type your search here"
  40.    End
  41.    Begin VB.CommandButton Command3 
  42.       Caption         =   "Help"
  43.       Height          =   315
  44.       Left            =   5520
  45.       TabIndex        =   13
  46.       Top             =   3780
  47.       Width           =   615
  48.    End
  49.    Begin VB.TextBox Text3 
  50.       Height          =   315
  51.       IMEMode         =   3  'DISABLE
  52.       Left            =   180
  53.       PasswordChar    =   "*"
  54.       TabIndex        =   10
  55.       Text            =   "Password"
  56.       Top             =   3000
  57.       Width           =   2835
  58.    End
  59.    Begin Project1.PassBox PassBox3 
  60.       Height          =   315
  61.       Left            =   3300
  62.       TabIndex        =   11
  63.       Top             =   3000
  64.       Width           =   2835
  65.       _ExtentX        =   5001
  66.       _ExtentY        =   556
  67.       Text            =   "PassBox"
  68.       PasswordChar    =   "*"
  69.    End
  70.    Begin VB.TextBox Text2 
  71.       Height          =   1455
  72.       Left            =   180
  73.       MultiLine       =   -1  'True
  74.       ScrollBars      =   2  'Vertical
  75.       TabIndex        =   6
  76.       Text            =   "Form1.frx":0000
  77.       Top             =   1140
  78.       Width           =   2835
  79.    End
  80.    Begin VB.TextBox Text1 
  81.       Height          =   315
  82.       Left            =   180
  83.       TabIndex        =   2
  84.       Text            =   "TextBox"
  85.       Top             =   420
  86.       Width           =   2835
  87.    End
  88.    Begin Project1.PassBox PassBox1 
  89.       Height          =   315
  90.       Left            =   3300
  91.       TabIndex        =   3
  92.       Top             =   420
  93.       Width           =   2835
  94.       _ExtentX        =   5001
  95.       _ExtentY        =   556
  96.       Text            =   "PassBox"
  97.    End
  98.    Begin Project1.PassBox PassBox2 
  99.       Height          =   1455
  100.       Left            =   3300
  101.       TabIndex        =   7
  102.       Top             =   1140
  103.       Width           =   2835
  104.       _ExtentX        =   5001
  105.       _ExtentY        =   2566
  106.       Text            =   $"Form1.frx":0087
  107.       ScrollBars      =   2
  108.       MultiLine       =   -1  'True
  109.    End
  110.    Begin VB.Line Line2 
  111.       BorderColor     =   &H80000014&
  112.       X1              =   9
  113.       X2              =   306
  114.       Y1              =   252.75
  115.       Y2              =   252.75
  116.    End
  117.    Begin VB.Line Line1 
  118.       BorderColor     =   &H80000010&
  119.       X1              =   9
  120.       X2              =   306
  121.       Y1              =   252
  122.       Y2              =   252
  123.    End
  124.    Begin VB.Label Label7 
  125.       Caption         =   $"Form1.frx":010F
  126.       Height          =   615
  127.       Left            =   180
  128.       TabIndex        =   15
  129.       Top             =   4260
  130.       Width           =   5895
  131.    End
  132.    Begin VB.Label Label8 
  133.       AutoSize        =   -1  'True
  134.       Caption         =   "This PassBox has the XP avanced features:"
  135.       Height          =   195
  136.       Left            =   180
  137.       TabIndex        =   12
  138.       Top             =   3480
  139.       Width           =   3120
  140.    End
  141.    Begin VB.Label Label6 
  142.       AutoSize        =   -1  'True
  143.       Caption         =   "Password PassBox Control"
  144.       Height          =   195
  145.       Left            =   3300
  146.       TabIndex        =   9
  147.       Top             =   2760
  148.       Width           =   1905
  149.    End
  150.    Begin VB.Label Label5 
  151.       AutoSize        =   -1  'True
  152.       Caption         =   "Password VB TextBox"
  153.       Height          =   195
  154.       Left            =   180
  155.       TabIndex        =   8
  156.       Top             =   2760
  157.       Width           =   1560
  158.    End
  159.    Begin VB.Label Label4 
  160.       AutoSize        =   -1  'True
  161.       Caption         =   "MultiLine PassBox Control"
  162.       Height          =   195
  163.       Left            =   3300
  164.       TabIndex        =   5
  165.       Top             =   900
  166.       Width           =   1830
  167.    End
  168.    Begin VB.Label Label3 
  169.       AutoSize        =   -1  'True
  170.       Caption         =   "MultiLine VB TextBox"
  171.       Height          =   195
  172.       Left            =   180
  173.       TabIndex        =   4
  174.       Top             =   900
  175.       Width           =   1485
  176.    End
  177.    Begin VB.Label Label2 
  178.       AutoSize        =   -1  'True
  179.       Caption         =   "Standard PassBox Control"
  180.       Height          =   195
  181.       Left            =   3300
  182.       TabIndex        =   1
  183.       Top             =   180
  184.       Width           =   1875
  185.    End
  186.    Begin VB.Label Label1 
  187.       AutoSize        =   -1  'True
  188.       Caption         =   "Standard VB TextBox"
  189.       Height          =   195
  190.       Left            =   180
  191.       TabIndex        =   0
  192.       Top             =   180
  193.       Width           =   1530
  194.    End
  195. End
  196. Attribute VB_Name = "Form1"
  197. Attribute VB_GlobalNameSpace = False
  198. Attribute VB_Creatable = False
  199. Attribute VB_PredeclaredId = True
  200. Attribute VB_Exposed = False
  201. Private Const UDS_ALIGNLEFT As Long = &H8
  202. Private Const UDS_ALIGNRIGHT As Long = &H4
  203. Private Const UDS_AUTOBUDDY As Long = &H10
  204. Private Const UDS_ARROWKEYS As Long = &H20
  205. Private Const UDS_HORZ As Long = &H40
  206. Private Const UDS_HOTTRACK As Long = &H100
  207. Private Const UDS_NOTHOUSANDS As Long = &H80
  208. Private Const UDS_SETBUDDYINT As Long = &H2
  209. Private Const UDS_WRAP As Long = &H1
  210.  
  211. Private Const WS_GROUP As Long = &H20000
  212. Private Const WS_BORDER As Long = &H800000
  213. Private Const WS_CHILD As Long = &H40000000
  214. Private Const WS_VISIBLE As Long = &H10000000
  215.  
  216. Private Declare Function CreateUpDownControl Lib "comctl32.dll" (ByVal dwStyle As Long, ByVal X As Long, ByVal Y As Long, ByVal cX As Long, ByVal cY As Long, ByVal hParent As Long, ByVal nID As Long, ByVal hInst As Long, ByVal hBuddy As Long, ByVal nUpper As Long, ByVal nLower As Long, ByVal nPos As Long) As Long
  217.  
  218. Private Declare Sub InitCommonControls Lib "comctl32.dll" ()
  219. Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
  220. Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
  221. Private lModule As Long
  222.  
  223. Private Sub Command3_Click()
  224.   Call PassBox4.ShowBalloonTip("Enter any word in the search box, then press enter", "Search help", TTI_INFO)
  225. End Sub
  226.  
  227. Private Sub Form_Initialize()
  228. lModule = LoadLibrary("Shell32.dll")
  229. InitCommonControls
  230. End Sub
  231. Private Sub Form_Load()
  232. 'Dim lStyle As Long
  233. '  lStyle = WS_VISIBLE Or WS_CHILD Or WS_GROUP Or UDS_SETBUDDYINT Or UDS_ALIGNRIGHT
  234. '  CreateUpDownControl lStyle, 0, 0, 0, 0, PassBox1.hWnd, &H100, App.hInstance, PassBox1.hWndEdit, 255, 0, 0
  235. End Sub
  236. Private Sub Form_Unload(Cancel As Integer)
  237.   Call FreeLibrary(lModule)
  238. End Sub
  239.  
  240. Private Sub Command1_Click()
  241.   Unload Me
  242. End Sub
  243.