Public Const FADE_RED = &HFF&
Public Const FADE_GREEN = &HFF00& Public Const FADE_BLUE = &HFF0000 Public Const FADE_YELLOW = &HFFFF& Public Const FADE_WHITE = &HFFFFFF Public Const FADE_BLACK = &H0& Public Const FADE_PURPLE = &HFF00FF Public Const FADE_GREY = &HC0C0C0 Public Const FADE_PINK = &HFF80FF Public Const FADE_TURQUOISE = &HC0C000 Type COLORRGB red As Long green As Long blue As Long End Type Declare Function ModifyMenu Lib "user32" Alias "ModifyMenuA" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpString As Any) As Long Declare Function GetCursorPos& Lib "user32" (lpPoint As POINTAPI) Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long Declare Function FlashWindow Lib "user32" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long 'PuNkEr.bas made by PuNkDuDe Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (destination As Any, Source As Any, ByVal Length As Long) Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long Private Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (ByVal hModule As Long, ByVal lpFileName As String, ByVal nSize As Long) As Long Private Declare Function GetWindowWord Lib "user32" (ByVal hwnd As Long, ByVal nIndex As Long) As Integer Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long Declare Function CreateSolidBrush Lib "GDI" (ByVal crColor As Long) As Integer Declare Function CreatePopupMenu Lib "user32" () As Long Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Private Declare Function GetActiveWindow Lib "user32" () As Long Private Declare Function setactivewindow Lib "user32" Alias "SetActiveWindow" (ByVal hwnd As Long) As Long Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Public Declare Function SendMessageLong& Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) Public Const ENTER_KEY = 13 Public Const CB_ADDSTRING& = &H143 Public Const CB_DELETESTRING& = &H144 Public Const CB_FINDSTRINGEXACT& = &H158 Public Const CB_GETCOUNT& = &H146 Public Const CB_GETITEMDATA = &H150 Public Const CB_GETLBTEXT& = &H148 Public Const CB_RESETCONTENT& = &H14B Public Const CB_SETCURSEL& = &H14E Global ATTAG As Variant Private Const SWP_NOMOVE = 2 Private Const SWP_NOSIZE = 1 Private Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE Private Const HWND_TOPMOST = -1 Private Const HWND_NOTOPMOST = -2 Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long Declare Function GetClientRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long Declare Function ScreenToClient Lib "user32" (ByVal hwnd As Long, lpPoint As POINTAPI) As Long Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long Declare Function CreatePolygonRgn Lib "gdi32" (lpPoint As POINTAPI, ByVal nCount As Long, ByVal nPolyFillMode As Long) As Long Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long Declare Function CreatePolyPolygonRgn& Lib "gdi32" (lpPoint As POINTAPI, lpPolyCounts As Long, ByVal nCount As Long, ByVal nPolyFillMode As Long) Private Type POINTAPI X As Long Y As Long End Type Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Integer) As Integer Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Integer) As Integer Declare Function CreateFont% Lib "gdi32" (ByVal h%, ByVal w%, ByVal e%, ByVal O%, ByVal w%, ByVal i%, ByVal U%, ByVal S%, ByVal C%, ByVal OP%, ByVal cp%, ByVal q%, ByVal PAF%, ByVal f$) Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer) As Integer Declare Function SetTextColor Lib "gdi32" (ByVal hdc As Integer, ByVal crColor As Long) As Long Declare Function TextOut Lib "gdi32" (ByVal hdc As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal lpString As String, ByVal nCount As Integer) As Integer Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpdirectory As String, ByVal nShowCmd As Long) As Long Public Type NOTIFYICONDATA cbSize As Long hwnd As Long uId As Long uFlags As Long ucallbackMessage As Long hIcon As Long szTip As String * 64 End Type Public Const NIM_ADD = &H0 Public Const NIM_MODIFY = &H1 Public Const NIM_DELETE = &H2 Public Const NIF_MESSAGE = &H1 Public Const NIF_ICON = &H2 Public Const NIF_TIP = &H4 Public Const WM_MOUSEMOVE = &H200 Public Const WM_LBUTTONDBLCLK = &H203 Public Const WM_LBUTTONDOWN = &H201 Public Const WM_RBUTTONDOWN = &H204 Declare Function PostMessage& Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) Private Declare Function GetVolumeInformation Lib _ "kernel32.dll" Alias "GetVolumeInformationA" (ByVal _ lpRootPathName As String, ByVal lpVolumeNameBuffer As _ String, ByVal nVolumeNameSize As Integer, _ lpVolumeSerialNumber As Long, lpMaximumComponentLength _ As Long, lpFileSystemFlags As Long, ByVal _ lpFileSystemNameBuffer As String, ByVal _ nFileSystemNameSize As Long) As Long Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long Declare Function GetMenuItemID Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long Declare Function SetMenuItemBitmaps Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal hBitmapUnchecked As Long, ByVal hBitmapChecked As Long) As Long Const SWP_HIDEWINDOW = &H80 Const SWP_SHOWWINDOW = &H40 Public Const MF_BITMAP = &H4& Type MENUITEMINFO cbSize As Long fMask As Long fType As Long fState As Long wid As Long hSubMenu As Long hbmpChecked As Long hbmpUnchecked As Long dwItemData As Long dwTypeData As String cch As Long End Type Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long Const MIIM_ID = &H2 Public Const MIIM_TYPE = &H10 Public Const MFT_STRING = &H0& Public RoomHandle% Declare Function FindWindow% Lib "user32" Alias "FindWindowA" (ByVal lpClassName$, ByVal lpWindowName$) Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long Declare Function SendMessageByString& Lib "user32" Alias "SendMessageA" (ByVal hwnd&, ByVal wMsg&, ByVal wParam&, ByVal lParam$) Declare Function SenditbyNum& Lib "user32" Alias "SendMessageA" (ByVal hwnd&, ByVal wMsg&, ByVal wParam&, ByVal lParam&) Declare Function GetWindow& Lib "user32" (ByVal hwnd&, ByVal wCmd&) Declare Function GetWindowTextLength& Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd&) Declare Function SetBkColor Lib "gdi32" (ByVal hdc As Long, ByVal crColor As Long) As Long Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Integer, ByVal bRevert As Integer) As Integer Public Const WM_CHAR = &H102 Public Const VK_SPACE = &H20 Public Const VK_RETURN = &HD Declare Function ExitWindowsEx Lib "user32" _ (ByVal uFlags As Long, ByVal dwReserved As Long) As Long Public Const EWX_FORCE = 4 Public Const EWX_REBOOT = 2 Public Const EWX_SHUTDOWN = 1 Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long Declare Function ReleaseDC Lib "user32" (ByVal hwnd%, ByVal hdc%) As Integer Declare Function GetWindowDC Lib "user" (ByVal hwnd As Integer) As Integer Declare Function SwapMouseButton% Lib "user" (ByVal bSwap%) Declare Function ENumChildWindow% Lib "user" (ByVal hWndParent%, ByVal lpEnumFunc&, ByVal lParam&) Declare Function FillRect Lib "user" (ByVal hdc As Integer, lpRect As RECT, ByVal hBrush As Integer) As Integer Declare Function GetDC Lib "user32" (ByVal hwnd%) As Integer Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal cmd As Long) As Long Declare Function IsWindowEnabled Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Long, ByVal lpBuffer As String, ByVal nSize As Long, ByRef lpNumberOfBytesWritten As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Private Declare Sub RtlMoveMemory Lib "kernel32" (ByRef dest As Any, ByRef Source As Any, ByVal nBytes As Long) Declare Function RedrawWindow Lib "user32" (ByVal hwnd As Long, lprcUpdate As RECT, ByVal hrgnUpdate As Long, ByVal fuRedraw As Long) As Long Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long Declare Function SetRect Lib "user32" (lpRect As RECT, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long Declare Function dwGetStringFromLPSTR Lib "dwspy32.dll" (ByVal lpcopy As Long) As String Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Declare Function dwGetAddressForObject& Lib "dwspy32.dll" (object As Any) Declare Function dwXCopyDataBynumFrom& Lib "dwspy32.dll" Alias "dwXCopyDataFrom" (ByVal mybuf As Long, ByVal foreignbuf As Long, ByVal size As Integer, ByVal foreignPID As Long) Declare Function dwGetWndInstance& Lib "dwspy32.dll" (ByVal hwnd&) Declare Function RegisterWindowMessage& Lib "user32" Alias "RegisterWindowMessageA" (ByVal lpString As String) Public Declare Function FindWindowChild Lib "user32" Alias "FindWindowChildA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer Private Declare Function GetKeyboardState Lib "user32" (pbKeyState As Byte) As Long Private Declare Function SetKeyboardState Lib "user32" (lppbKeyState As Byte) As Long Declare Function EnumWindows& Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long Declare Function ShellAbout Lib "shell32.dll" Alias "ShellAboutA" (ByVal hwnd As Long, ByVal szApp As String, ByVal szOtherStuff As String, ByVal hIcon As Long) As Long Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Long) As Long Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long Declare Function SelectObject Lib "GDI" (ByVal hdc As Integer, ByVal hObject As Integer) As Integer Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Declare Function GetTopWindow Lib "user32" (ByVal hwnd As Long) As Long Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" (ByVal hwnd As Long) As Long Declare Function GetMenuString Lib "user32" Alias "GetMenuStringA" (ByVal hMenu As Long, ByVal wIDItem As Long, ByVal lpString As String, ByVal nMaxCount As Long, ByVal wFlag As Long) As Long Declare Function InsertMenu Lib "user32" Alias "InsertMenuA" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As String) As Long Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As String) As Long Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long Declare Function DestroyMenu Lib "user32" (ByVal hMenu%) As Integer Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Declare Sub Rectangle Lib "GDI" (ByVal hdc As Integer, ByVal X1 As Integer, ByVal Y1 As Integer, ByVal X2 As Integer, ByVal Y2 As Integer) Declare Sub DeleteObject Lib "GDI" (ByVal hObject As Integer) Declare Sub dwCopyDataBynum Lib "dwspy32.dll" Alias "dwCopyData" (ByVal Source&, ByVal dest&, ByVal nCount&) Declare Sub dwCopyDataByString Lib "dwspy32.dll" Alias "dwCopyData" (ByVal Source As String, ByVal dest As Long, ByVal nCount&) Declare Sub ReleaseCapture Lib "user32" () Global Const GFSR_SYSTEMRESOURCES = 0 Global Const GFSR_GDIRESOURCES = 1 Global Const GFSR_USERRESOURCES = 2 Global Const WM_MDICREATE = &H220 Global Const WM_MDIDESTROY = &H221 Global Const WM_MDIACTIVATE = &H222 Global Const WM_MDIRESTORE = &H223 Global Const WM_MDINEXT = &H224 Global Const WM_MDIMAXIMIZE = &H225 Global Const WM_MDITILE = &H226 Global Const WM_MDICASCADE = &H227 Global Const WM_MDIICONARRANGE = &H228 Global Const WM_MDIGETACTIVE = &H229 Global Const WM_MDISETMENU = &H230 Public Const WM_SYSCOMMAND = &H112 Global Const WM_CUT = &H300 Global Const WM_COPY = &H301 Global Const WM_PASTE = &H302 Public Const WM_SETTEXT = &HC Public Const WM_USER = &H400 Public Const WM_KEYDOWN = &H100 Public Const WM_KEYUP = &H101 Public Const WM_LBUTTONUP = &H202 Public Const WM_CLOSE = &H10 Public Const WM_COMMAND = &H111 Public Const WM_CLEAR = &H303 Public Const WM_DESTROY = &H2 Public Const WM_GETTEXT = &HD Public Const WM_GETTEXTLENGTH = &HE Public Const BM_GETCHECK = &HF0 Public Const BM_GETSTATE = &HF2 Public Const BM_SETCHECK = &HF1 Public Const BM_SETSTATE = &HF3 Public Const SC_MOVE = &HF012 Public Const LB_GETITEMDATA = &H199 Public Const LB_GETCOUNT = &H18B Public Const LB_ADDSTRING = &H180 Public Const LB_DELETESTRING = &H182 Public Const LB_FINDSTRING = &H18F Public Const LB_FINDSTRINGEXACT = &H1A2 Public Const LB_GETCURSEL = &H188 Public Const LB_GETTEXT = &H189 Public Const LB_GETTEXTLEN = &H18A Public Const LB_SELECTSTRING = &H18C Public Const LB_SETCOUNT = &H1A7 Public Const LB_SETCURSEL = &H186 Public Const LB_SETSEL = &H185 Public Const LB_INSERTSTRING = &H181 Public Const VK_HOME = &H24 Public Const VK_RIGHT = &H27 Public Const VK_CONTROL = &H11 Public Const VK_DELETE = &H2E Public Const VK_DOWN = &H28 Public Const VK_LEFT = &H25 Public Const VK_TAB = &H9 Public Const HWND_TOP = 0 Global Const SND_SYNC = &H0 Global Const SND_ASYNC = &H1 Global Const SND_NODEFAULT = &H2 Global Const SND_LOOP = &H8 Global Const SND_NOSTOP = &H10 Public Const GW_CHILD = 5 Public Const GW_HWNDFIRST = 0 Public Const GW_HWNDLAST = 1 Public Const GW_HWNDNEXT = 2 Public Const GW_HWNDPREV = 3 Public Const GW_MAX = 5 Public Const GW_OWNER = 4 Public Const SW_MAXIMIZE = 3 Public Const SW_MINIMIZE = 6 Public Const SW_HIDE = 0 Public Const SW_RESTORE = 9 Public Const SW_SHOW = 5 Public Const SW_SHOWDEFAULT = 10 Public Const SW_SHOWMAXIMIZED = 3 Public Const SW_SHOWMINIMIZED = 2 Public Const SW_SHOWMINNOACTIVE = 7 Public Const SW_SHOWNOACTIVATE = 4 Public Const SW_SHOWNORMAL = 1 Public Const MF_APPEND = &H100& Public Const MF_DELETE = &H200& Public Const MF_CHANGE = &H80& Public Const MF_ENABLED = &H0& Public Const MF_DISABLED = &H2& Public Const MF_REMOVE = &H1000& Public Const MF_POPUP = &H10& Public Const MF_STRING = &H0& Public Const MF_UNCHECKED = &H0& Public Const MF_CHECKED = &H8& Public Const MF_GRAYED = &H1& Public Const MF_BYPOSITION = &H400& Public Const MF_BYCOMMAND = &H0& Public Const NUM_SQUARES = 9 Public Board(1 To NUM_SQUARES) As Integer Public GameInProgress As Integer Public Const PLAYER_DRAW = -1 Public Const PLAYER_NONE = 0 Public Const PLAYER_HUMAN = 1 Public Const PLAYER_COMPUTER = 2 Public Const NUM_PLAYERS = 2 Public NextPlayer As Integer Public PlayerX As Integer Public PlayerO As Integer Public SkillLevel As Integer Public Const GWW_HINSTANCE = (-6) Public Const GWW_ID = (-12) Public Const GWL_STYLE = (-16) Public Const PROCESS_VM_READ = &H10 Type RECT Left As Long Top As Long right As Long Bottom As Long End Type Sub AllNotOnTop() Dim frm As Form For Each frm In Forms FORM_NotonTop frm Next frm End Sub 'i use this one a lot i love it! Sub BlueCircle(DaForm As Object) Dim X Dim Y Dim red Dim blue X = DaForm.Width Y = DaForm.Height DaForm.FillStyle = 0 red = 0 blue = DaForm.Width Do Until red = 255 red = red + 1 blue = blue - DaForm.Width / 255 * 1 DaForm.FillColor = RGB(0, 0, red) If blue < 0 Then Exit Do DaForm.Circle (DaForm.Width / 2, DaForm.Height / 2), blue, RGB(0, 0, red) Loop End Sub 'i use this sometimes also,this is just 'like a gradit or what ever its called Sub BlueFade(frm As Object) On Error Resume Next Dim DaLoop As Integer frm.DrawStyle = vbInsideSolid frm.DrawMode = vbCopyPen frm.ScaleMode = vbPixels frm.DrawWidth = 2 frm.ScaleHeight = 256 For DaLoop = 0 To 255 frm.Line (0, DaLoop)-(Screen.Width, DaLoop - 1), RGB(0, 0, 255 - DaLoop), B Next DaLoop End Sub 'center ur form Sub Center(frm As Form) frm.Top = (Screen.Height * 0.85) / 2 - frm.Height / 2 frm.Left = Screen.Width / 2 - frm.Width / 2 End Sub ' this is ok but i like my blue circle better Sub FireyCircle(DaForm As Object) Dim X Dim Y Dim red Dim blue X = DaForm.Width Y = DaForm.Height DaForm.FillStyle = 0 red = 0 blue = DaForm.Width Do Until red = 255 red = red + 1 blue = blue - DaForm.Width / 255 * 1 DaForm.FillColor = RGB(255, red, 0) If blue < 0 Then Exit Do DaForm.Circle (DaForm.Width / 2, DaForm.Height / 2), blue, RGB(255, red, 0) Loop End Sub 'its ok but blue is my fave Sub GreenCircle(DaForm As Object) Dim X Dim Y Dim red Dim blue X = DaForm.Width Y = DaForm.Height DaForm.FillStyle = 0 red = 0 blue = DaForm.Width Do Until red = 255 red = red + 1 blue = blue - DaForm.Width / 255 * 1 DaForm.FillColor = RGB(0, red, 0) If blue < 0 Then Exit Do DaForm.Circle (DaForm.Width / 2, DaForm.Height / 2), blue, RGB(0, red, 0) Loop End Sub 'this is a cool one Sub RedCircle(DaForm As Object) Dim X Dim Y Dim red Dim blue X = DaForm.Width Y = DaForm.Height DaForm.FillStyle = 0 red = 0 blue = DaForm.Width Do Until red = 255 red = red + 1 blue = blue - DaForm.Width / 255 * 1 DaForm.FillColor = RGB(red, 0, 0) If blue < 0 Then Exit Do DaForm.Circle (DaForm.Width / 2, DaForm.Height / 2), blue, RGB(red, 0, 0) Loop End Sub 'my greate 3D Form Effect...lol Sub F_3D(frmForm As Form) 'Will allow an easy way to make your (frmForm) 3D Const cPi = 3.1415926 'Perfect Dim intLineWidth As Integer intLineWidth = 5 Dim intSaveScaleMode As Integer intSaveScaleMode = frmForm.ScaleMode frmForm.ScaleMode = 3 Dim intScaleWidth As Integer Dim intScaleHeight As Integer intScaleWidth = frmForm.ScaleWidth intScaleHeight = frmForm.ScaleHeight frmForm.Cls frmForm.Line (0, intScaleHeight)-(intLineWidth, 0), &HFFFFFF, BF frmForm.Line (0, intLineWidth)-(intScaleWidth, 0), &HFFFFFF, BF frmForm.Line (intScaleWidth, 0)-(intScaleWidth - intLineWidth, _ intScaleHeight), &H808080, BF frmForm.Line (intScaleWidth, intScaleHeight - intLineWidth)-_ (0, intScaleHeight), &H808080, BF Dim intCircleWidth As Integer intCircleWidth = Sqr(intLineWidth * intLineWidth + intLineWidth * intLineWidth) frmForm.FillStyle = 0 frmForm.FillColor = QBColor(15) frmForm.Circle (intLineWidth, intScaleHeight - intLineWidth), _ intCircleWidth, QBColor(15), -3.1415926, _ -3.90953745777778 '-180 * cPi / 180, -224 * cPi / 180 frmForm.Circle (intScaleWidth - intLineWidth, intLineWidth), _ intCircleWidth, QBColor(15), -0.78539815, _ -1.57079e' ' -45 * cPi / 180, -90 * cPi / 180 frmForm.Line (0, intScaleHeight)-(0, 0), 0 frmForm.Line (0, 0)-(intScaleWidth - 1, 0), 0 frmForm.Line (intScaleWidth - 1, 0)-(intScaleWidth - 1, intScaleHeight - 1), 0 frmForm.Line (0, intScaleHeight - 1)-(intScaleWidth - 1, intScaleHeight - 1), 0 frmForm.ScaleMode = intSaveScaleMode End Sub Name: Nova Ice Form Bas File Description: well this just has some cool form effect (includes my 3D Form Effect) But This Has Some Good Fades,I Use Them Alot, Remember To Put the Sub In The Form_Activate, Also Put Auto Redraw On True.:-) Hope You Like, |