'Classic VB' Category

  • Moving Form By Dragging

    July 20, 2006

    Private Declare Sub ReleaseCapture Lib “user32″ () Private 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 Public Sub FormDrag(theForm As Form) ReleaseCapture Call SendMessage(theForm.hwnd, &HA1, 2, 0&) End Sub Private Sub Form_MouseDown(Button AsInteger, _ Shift [...]

  • Useful Links for Visual Basic

    April 3, 2006

    MVP(s) Brad Martinez Steve McMahon Eduardo A. Morcillo VBSpeed Randy Birch Karl E. Peterson Libraries VBCorLib Steve McMahon Eduardo A. Morcillo VBSpeed Randy Birch Karl E. Peterson API, Hooking and SubClassing Book "Hardcore Visual Basic" AllAPI.net AllAPI.net : API List Hidden Gems for Free : Exposing undocumented memory access functions in Visual Basic 6 (By [...]

  • Differences between Image and PictureBox

    April 3, 2006

    Image control a "lightweight" control that has no device context (or hDC) or it's own. can display a gif file loaded into the picture property with a transparent background. flicker when moved at runtime. can only be z-ordered (layered) over another lighweight control. has Stretch property. Otherwise, ImageControl can stretch the image. No AutoSize Property. [...]

  • VB6 – Detecting whether the program is running under the control of Visual Studio or not..

    December 22, 2005

    Drag Article : Moved from Old Blog Private Declare Function GetModuleHandle _ Lib "kernel32" Alias _ "GetModuleHandleA" _ (ByVal lpModuleName As String) As Long </span> <span style="font-family: verdana; font-size: 85%"> Public Function TestEnvironment() As Boolean Dim ModuleHandle As String Dim EnvFileName As String Dim EnvVal As Variant Dim ReturnVal As Long Dim i As Long [...]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org