Name | Code |
Stay On Top | Module1:
Declare Sub SetWindowPos Lib "User" (ByVal hWnd As Integer, ByVal hWnd As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) Form Load: Call SetWindowPos(Me.hWnd, -1, 0, 0, 0, 0, 27) |
Center A Form | Form Load:
Form1.Move(Screen.width-form1.width)\2,(screen.height-form1.height)\2 |
Play a Wav File | Module:
Declare Function sndplaysound Lib"mmsystem.dll" (ByVal wavfile As Any, ByVal wflags As Integer) As Integer Global counter As Integer Form Load: i% = sndplaysound("name_of_file.wav", 1) |
Hide and Show Task Bar | Module:
Declare Function ShowWindow Lib "User" (ByVal hWnd As Integer, ByVal nCmdShow As Integer) As Integer
Declare Function FindWindow Lib "User" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Integer
Const SW_HIDE = 0 Command1:
Dim FindBar As Integer
FindBar = FindWindow("Shell_TrayWnd", 0&) Command2:
Dim FindBar As Integer
FindBar = FindWindow("Shell_TrayWnd", 0&) |
Run other programs thru yours | Command Button:
RetVal = Shell("C:\WINDOWS\NAME_OF_FILE.EXE", 1) |
Date | Form Load:
If Label1 <> Cstr ( Date ) Then |
Time | Timer:
If Label1 <> Cstr(Time) Then Set timers interval to 500 |
Password Box | Command Button:
If Text1.Text = "Password" Then |
NON Case Password Box | Command Button:
If LCase$(Text1) = "password" Then |
More then 1 password | Command Button:
If Text1.Text = "Password#1" Then |