How can I make mousewheel work in VB6 IDE?

Microsoft has an extension that can provide the behavior requested. You have to download it from the link below and register it with the steps provided, such as using regsvr32 http://download.microsoft.com/download/e/f/b/efb39198-7c59-4ace-a5c4-8f0f88e00d34/vb6mousewheel.exe Update: Here are the steps Download the VB6 Mouse Wheel.exe file that includes the add-in DLL and the code that is used to create … Read more

Add newline to VBA or Visual Basic 6

Visual Basic has built-in constants for newlines: vbCr = Chr$(13) = CR (carriage-return character) – used by Mac OS and Apple II family vbLf = Chr$(10) = LF (line-feed character) – used by Linux and Mac OS X vbCrLf = Chr$(13) & Chr$(10) = CRLF (carriage-return followed by line-feed) – used by Windows vbNewLine = … Read more

Alternative IDE for VB6 and VBA [closed]

I have never heard of an alternative IDE for Vb6. However, these two (free) VB6 add-ins are indispensable and will make your life easier – especially if there is a lot of code. They are equally effective for VBA in Microsoft Office. MZ-Tools: provides a superb collection of IDE tools – finding unused variables, unused … Read more

Why is it bad practice to call an eventhandler from code?

It’s a question of how your program is organized. In the scenario you’ve described, the menu item’s behavior will be defined in terms of the button’s: procedure TJbForm.MenuItem1Click(Sender: TObject); begin // Three different ways to write this, with subtly different // ways to interpret it: Button1Click(Sender); // 1. “Call some other function. The name suggests … Read more

What is the difference between Dim, Global, Public, and Private as Modular Field Access Modifiers?

Dim and Private work the same, though the common convention is to use Private at the module level, and Dim at the Sub/Function level. Public and Global are nearly identical in their function, however Global can only be used in standard modules, whereas Public can be used in all contexts (modules, classes, controls, forms etc.) … Read more

Is there a need to set Objects to Nothing

VB uses a so-called “reference counting” garbage collector. Basically, the moment a variable goes out of scope, the reference counter on the referenced object is decremented. When you assign the object reference to another variable, the reference counter is incremented. When the counter reaches zero, the object is ready for garbage collection. The object resources … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)