New build MZ-Tools 8.0.0.176

Today a new monthly build of MZ-Tools 8.0 has been released, with just three bug fixes and a minor enhancement for users of VB6: toolbars are now hidden when entering debug-time or run-time. Since VB6 only allows add-ins to work at design-time, it hides buttons of add-ins at debug/run time. MZ-Tools now hides the whole toolbars, to gain space. This was also the behavior of MZ-Tools 3.0.

Also, starting this month, the setups are digitally signed with a code-signing certificate.

MZ-Tools 8.0.0.176 released (February 1, 2018)

  • Enhanced [#12748] (VB6): The toolbars are now hidden when entering debug-time or run-time.
  • Fixed [#12745] (All): The Private Clipboards didn’t check that the document window was the active window.
  • Fixed [#12757] (VB/VBA): The Find Text feature showed infinite results searching the last word of a code file.
  • Fixed [#12763] (VB6): The content of the clipboard in RTF or image formats was not preserved when loading MZ-Tools.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

Happy New Year! And a new build MZ-Tools 8.0.0.175

Happy New Year! A new build 8.0.0.175 was released last January 1 with some enhancements and minor bug fixes.

  • Enhanced [#12708] (All): The previous version of Options files are now kept with the .old extension.
  • Enhanced [#12708] (VB/VBA): The previous version of Task file is now kept with the .old extension.
  • Enhanced [#11687, #12684] (All): Added context menu to the code template editor to cut, copy and paste text.
  • Enhanced [Internal] (VB/VBA): The Code Explorer now sets the focus on the code window when double-clicking a code element or pressing the Enter key.
  • Fixed [#12691] (All): The Show Code Elements toggle button on the toolbar of the results window didn’t reflect the state of the selected tab.
  • Fixed [#12691] (All): The Show Code Elements toggle button on the toolbar of the results window didn’t initialize the Show Code Elements checkbox of the Find Text toolwindow.
  • Fixed [#12722] (VB/VBA): The preselected file or project in the scope selection window of an operation was not correct when using the context menu of the Project Explorer.
  • Fixed [#12721] (VB/VBA): The New Method/Property Assistant generated invalid code if all the lines from the insertion point until the end of the document were blank lines.
  • Fixed [#12465, #12474, #12591, #12724] (VB/VBA): The Code Explorer didn’t parse correctly multiline constants.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.174 released with two new predefined variables and some bug fixes

The last public build of MZ-Tools 8.0 this year was released a couple of days ago (next one is scheduled for January). This build 8.0.0.174 introduces two new predefined variables for code templates, etc. and some bug fixes:

  • Enhanced [Internal] (All): The Nomenclature Rules Review now shows a better message when the case of the name is not correct and it uses prefixes or suffixes.
  • Enhanced [#12625] (All): New predefined variable “Guid” ($P[GUID]).
  • Enhanced [#12581] (All): New predefined variable “Method Property Kind” ($P[METHOD_PROPERTY_KIND]).
  • Fixed [#12591] (VB/VBA): Hidden types (such as Excel.CheckBox) were not shown in the type tag editor.
  • Fixed [#12591] (All): The Nomenclature Rule editor showed a wrong example when using the $P[TYPE_TAG_WITH_UPPER_CASE] predefined variable.
  • Fixed [#12634] (VBA): COMException HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER) could happen in some VBA hosts.
  • Fixed [#12654, #12631] (VS): The dialog to select the exception handler or header crashed Visual Studio.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.172 released with bug fixes

A new monthly build of MZ-Tools 8.0 was published last November 1. It introduces an enhancement to replace contents of existing VBA files when importing, rather than duplicating the file, and some bug fixes. The complete change log is the following:

  • Enhanced [#12516] (VBA): The Import Files feature now replaces the contents of existing items.
  • Fixed [#12553] (VB/VBA): The Line Indenting feature didn’t handle correctly line continuations at the end of a comment followed by a blank line.
  • Fixed [#12559] (VB/VBA): The Select Case Assistant didn’t work in properties, only in methods.
  • Fixed [#12562] (VBA): The Development Environment Settings Review did not run on startup.
  • Fixed [#12575] (All): Entering by accident in the dialog to enter user-defined variable values a user-defined variable name hung the IDE.

 

Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.169 released with bug fixes

As usual, today a new monthly build of MZ-Tools has been released. This time with a small usability enhancement and some bug fixes.

The changelog is the following:

  • Enhanced [#12424] (All): The user options window now remembers the last used setting to keep open modified documents or not.
  • Fixed [#12376] (All): The HTML documentation didn’t handle correctly constants and fields.
  • Fixed [#12234] (VB/VBA): The Code Explorer could still cause System.NullReferenceException when closing.
  • Fixed [#12384] (VB/VBA): Constants and variables of properties were not reviewed by the Review Quality feature.
  • Fixed [#12386] (VB/VBA): Multiple constants/fields declared using line continuation were not parsed correctly.
  • Fixed [#12387] (VB/VBA): Declarations of Declare Function/Sub using a line continuation were not parsed correctly.
  • Fixed [#12391] (VB/VBA): COMException happened refreshing results if the scope was current file and the file had been removed and readded.
  • Fixed [#12410] (VB/VBA): Error “Failed to get command bar name of: CommandBarKinds.MenuBar” if the File menu entry was not the first one on the main menu.
  • Fixed [Internal] (VB/VBA): The Code Explorer didn’t show Declare Sub / Declare Function code elements.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.168 released introducing collector of ‘ TODO: tasks in code

Today MZ-Tools 8.0.0.168 has been released. It fixes an important performance bug that can happen using the Select Case Assistant for VBA/VB6/VB5 and other minor bugs but, more importantly, it introduces a quite requested feature: a collector of TODO tasks in code for those IDEs. MZ-Tools 8.0 already provided a Task List, but it was for tasks entered by hand, now called “general” tasks:These tasks are entered manually through a dialog and are not tied to code:

This new build provides a new tab in the Task List for “code” tasks, that are comments in code that start with ‘ TODO: or ‘TODO: (without space):

This features scans all the code of your project showing those types of comments. Hopefully you find this feature useful.

The complete changelog is the following:

  • Enhanced [#12326] (VB/VBA): The Task List provides now a new tab page to show code tasks (‘ TODO: comments) apart from general tasks.
  • Enhanced [#12287] (All): The commands GenerateXmlDocumentation and GenerateHtmlDocumentation can be now automated.
  • Fixed [#12312] (VS): NullReferenceException loading MZ-Tools on Visual Studio 2010, 2008 or 2005. This bug was introduced in last build 8.0.0.164
  • Fixed [#12307] (VS): The Add Line Numbers feature numbered lines after initializer ‘=’ in VB.NET 10.0 or higher.
  • Fixed [#12234] (VB/VBA): The Code Explorer could still cause System.NullReferenceException when closing.
  • Fixed [#12247] (VB/VBA): The Select Case Assistant didn’t parse correctly enum items with comments or conditional compilation directives.
  • Fixed [#12247] (VB/VBA): The Select Case Assistant could be very slow in some scenarios.
  • Fixed [#12347] (VBA): Using MSForms, pages of a MultiPage control were not retrieved on Windows 7.
  • Fixed [Internal] (All): The window to select a code template didn’t have the correct tab order.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.164 released with enhancements and fixes

The new build 8.0.0.164 of MZ-Tools released yesterday fixes four minor bugs, but it introduces three handy enhancements.

The first one is for users of any IDE (Visual Studio, VBA, VB6 or VB5). The Select Case assistant (VB) or Switch Assistant (C#) for enums allows now you to specify an optional custom template for the enum items after the Case statement. This template can use the name of the enum item (in different forms, such as normal, uppercase, or uppercase with underscores) and the name of the parent enum. This is handy when the case statements perform assignments to constants, etc. The assistant shows now also a preview:

The second one is for VBA users: this build introduces also support for Most Used Properties in the Control Explorer, Form Default Properties and Control Default Properties (previously features that deal with properties of controls were only available for Visual Studio, VB6 and VB5):

Finally, for Visual Studio users, the number of commands for code templates has been increased from 9 to 50.

The complete changelog is the following:

  • Enhanced [#12247] (All): Added support for enum item template in Switch / Select Case Assistant for Enums.
  • Enhanced [#12204] (VBA): Added support for Most Used Properties (Control Explorer), Form Default Properties and Control Default Properties.
  • Enhanced [#12250] (VS): Increased the number of commands for code templates from 9 to 50.
  • Fixed [#12224] (VBA): The Task List could cause System.ArgumentException: (“Invalid characters in path”) saving tasks.
  • Fixed [#12234] (VB/VBA): The Code Explorer could cause System.NullReferenceException when closing.
  • Fixed [#12252] (VS): Expression-bodied function members caused NullReferenceException in C# 6.0 or higher.
  • Fixed [Internal] (VS): Controls of tab pages of programming and nomenclature rules review were not themed with the Dark theme.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.162 released with several enhancements and bug fixes

Yesterday a new build 8.0.0.162 of MZ-Tools was released, adding some small enhancements and documenting a subject that can be interesting for some people: how to automate MZ-Tools to add / remove line numbers to a project from a build script. It also fixes some small bugs reported in the last month.

The complete changelog is the following:

  • Enhanced [#12154] (All): Added predefined variables for Solution Folder/Project Group Folder, Project Folder and Project Item Folder.
  • Enhanced [Internal] (VS/VBA): Documented in help file how to automate MZ-Tools to add line numbers, etc.
  • Enhanced [Internal] (All): Added Comment field to exception/error handler editor.
  • Enhanced [Internal] (VB/VBA): The External Utilities feature allows now to have two external utilities with the same command but different parameters.
  • Enhanced [Internal] (VB/VBA): The External Utilities feature shows now external utilities that use project or file parameters on the context menu of project or file.
  • Fixed [#12170] (All): The Check for Updates feature could cause NullReferenceException if MZ-Tools was being unloaded.
  • Fixed [#12177] (All): Fixed typos in German localization.
  • Fixed [#12161] (VB/VBA): The Method Callers feature didn’t resolve correctly calls to properties that were made in continuation lines.
  • Fixed [#12181] (VB/VBA): The Sort Code Elements feature did not consider public the procedures or properties that lacked the Public keyword.
  • Fixed [Internal] (VB/VBA): The External Utilities feature didn’t show icons of external utilities on the Toolbars and Menus dialog.
  • Fixed [Internal] (VB/VBA): The end position of the body of a procedure was not correct if there was a blank line with spaces after the procedure.
  • Fixed [Internal] (VB6/VB5): The icons of external utilities disappeared after showing the Options window twice.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.158 released with several enhancements and bug fixes

Last May 1 a new monthly build of MZ-Tools, 8.0.0.158, was released. This build continues improving the updating experience initiated some builds ago: first, it provides again a “Download Only” button for those of you who don’t want the new automated update and prefer a manual installation as before. Second, in the automated update, it prevents in many cases the error that happened when some dll was in use, asking you to close the instance of the IDE before updating. And third, it reopens automatically the IDE and the loaded project when the update is finished.

In this build the headers review shows the first line of a header template that causes that the existing header no longer matches that template, which is useful to know why a header review is not passing. It also provides a context menu entry for the Insert Error Handler (VB) or Insert Exception Handler (Visual Studio).

It also introduces a change, in the form of a new requirement: .NET Framework 3.5 (previously only .NET Framework 2.0 was required). But in most cases you won’t need to install it because Windows 7 provides it and on Windows 10 only MZ-Tools 8.0 for Visual Studio 2005 will require it, but not MZ-Tools 8.0 for VBA/VB6/VB5. This new version of the .NET Framework will allow MZ-Tools in the future to use internally better APIs and externally new UI technologies (such as WPF).

Finally, this build fixes quite a few bugs that you have reported during the last month.

The complete changelog is the following:

  • Changed (VS 2005): .NET Framework 3.5 is now required if not running on Windows 7.
  • Changed (VBA/VB6/VB5): .NET Framework 3.5 is now required if running on Windows XP / Vista.
  • Enhanced [#12069] (All): The context menu of the code window now provides the “Insert Exception Handler” / “Insert Error Handler” meny entry.
  • Enhanced [#12113] (All): Added new predefined variable Type Tag With Upper Case ($P[TYPE_TAG_WITH_UPPER_CASE]), useful if your constants use upper case and include a type tag.
  • Enhanced [#12065, #12070, #12071] (All): The setup now shows a better message to close the IDE that is locking a file when updating.
  • Enhanced [#12065, #12070, #12071] (All): The setup now reopens the IDE and project or Office document that was open before closing it for updating.
  • Enhanced [Internal] (All): The Headers Review now shows the line of the header template that causes that the reviewed header doesn’t match it.
  • Fixed [#12068] (VBA): The Code Explorer didn’t respond to changes in the active file after unlocking a password-protected database. Now clicking the Refresh button starts responding.
  • Fixed [#12032] (VBA): In the Control Name Assistant, the Tab key inserted a Tab character in the textbox if a message box was shown (such as invalid name or state loss).
  • Fixed [#12081] (All): System.IO.IOException was not handled gracefully when deploying options files to a folder.
  • Fixed [#12090] (All): The Browse Folder dialog caused COMException 0x80040111 on Windows 7 if themes were deactivated.
  • Fixed [#12096] (VB/VBA): The Headers Review failed in some cases using user-defined variables.
  • Fixed [#12106] (All): The Programming Rules Review didn’t locate the exact code when using the “Any of these values” option instead of the “This value” option and didn’t show all violations.
  • Fixed [#12103] (VBA): The type tag editor and other features didn’t show 32-bit type libraries when using the 64-bit VBA editor.
  • Fixed [#12133] (VS): Shared projects were not supported.
  • Fixed [#12123] (VB6/VB5): Several features such as Find Text could crash a project if it contained many forms due to a leak.
  • Fixed [Internal] (All): The Headers Review didn’t review if there was more text or lines after the lines of a valid header.
  • Fixed [Internal] (VBA): Several features didn’t work correctly with the Page control in some versions of Office.
  • Fixed [Internal] (VBA): The Check for Updates feature of the portable edition offered the Install button when it should offer only the Download button.
  • Fixed [Internal] (VS): Icon of Keyboard Shortcuts in Options window was not correct when using the dark theme.
  • Fixed [Internal] (All): The Programming Rules Review didn’t show a friendly message if some regular expression was not valid.
  • Fixed [Internal] (All): The Programming Rules Review didn’t work in some scenarios using the Any Code Element rule kind.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit

MZ-Tools 8.0.0.149 released with several enhancements and bug fixes

Yesterday a new build 8.0.0.149 was released. This new build introduces two new columns, Access and Kind, in the Code Explorer:

It also provides a more streamlined updating experience that installs directly the new build without having to download the new setup, save it, locate it, run it, etc.:

There is also a new setting to choose whether to add blank lines or not in the New Method / Property Assistant (previously blank lines were always added):

The complete changelog is the following:

  • Enhanced [#11991] (All): The license file can now be replaced in the About window.
  • Enhanced [#11990] (All): The code element name is now shown in the caption of the Code Template User-Defined Variables Values dialog.
  • Enhanced [#12002] (VB/VBA): Added option to insert or not blank lines in code generated by the New Property/Method Assistant feature.
  • Enhanced [#12003] (VB/VBA): Added scope and kind columns to Code Explorer.
  • Fixed [#11910] (All): The setup shows now an error message to close the IDE that is locking a file.
  • Fixed [#11972] (All): The Options files were not read again once the connectivity with the drive that contained them was restored (USB drive, network folder, VPN, etc.).
  • Fixed [#11975] (All): The Code Explorer could cause NullReferenceException.
  • Fixed [#11993, #11594, #10722] (VBA): The Dead Code Review could cause COMException (0x800A9C68) when retrieving the Name property of a UserForm.
  • Fixed [#12005] (VS 2015): The Dead Code Review could cause System.InvalidOperationException “Ildasm File Full Name is null”.
  • Fixed [#12032] (VBA): The Tab key doesn’t work correctly in the Control Name Assistant. This bug was introduced in build 8.0.0.39
  • Fixed [#12020] (VB/VBA): The Sort Code Elements feature didn’t allow conditional compilation directives inside properties.
  • Fixed [#12037] (VB/VBA): The New Method/Property Assistant failed when used on a class whose name started with “I” because it is an interface.
  • Fixed [#12036] (VS): The line numbering feature of VB.NET didn’t exclude lines starting with the “Into” keyword.
  • Fixed [Internal] (VS): Some windows were not shown correctly with the Dark theme. This bug was introduced in non-public build 8.0.0.136.
  • Fixed [Internal] (VS/VBA): The Next Item button on the Control Explorer toolbar didn’t have the correct size in high DPI displays.
  • Fixed [Internal] (All): The icons in the explanation zone of the Options window didn’t have the correct color depth.
Tweet about this on TwitterShare on FacebookEmail this to someoneShare on Google+Share on LinkedInShare on Reddit