Quantcast
Channel: The blog of MZ-Tools
Viewing all 74 articles
Browse latest View live

MZ-Tools 8.0 Build 8.0.0.106 released

$
0
0

Yesterday it was the first anniversary of MZ-Tools 8.0 for VBA, VB6 and VB5. Happy birthday! I want to thank all the people whose feedback has made this product much better, requesting new features and enhancements, and reporting bugs.

Yesterday also a new build 8.0.0.106 was released, as every month. The complete changelog is the following:

MZ-Tools 8.0.0.106 released (October 1, 2016)

  • New [Internal] (VBA): MZ-Tools 8.0 for VBA Portable edition.
  • Fixed [#11589] (All): The Code Library doesn’t set the focus on the treeview with code templates when shown.
  • Fixed [#11522, #11524] (VB6/VB5): Toolwindows could not be shown (System.InvalidCastException “Unable to cast COM object of type ‘System.__ComObject’ to class type System.Windows.Forms.UserControl”) on Windows 8 or higher if VB6/VB5 is running in compatibility mode with Windows XP. This bug was introduced in build 8.0.0.99.
  • Fixed [#11580] (All): The Headers Review didn’t ignore spaces at the end of a line for VB/VB.NET languages.
  • Fixed [#11589] (VB/VBA): The Esc key allows to close toolwindows.
  • Fixed [#11570] (VB/VBA): The Line Indenting feature caused “System.InvalidOperationException: Indentation of paragraph of file failed” if the file ended with a line with spaces and the last method included line numbers.
  • Fixed [#11544] (VBA): The Options window doesn’t show the Personal / Team options tabs on some configurations (Windows 10 on Parallels).
  • Fixed [#11554] (VBA): The Generate HTML/XML documentation feature crashed the VBA editor of the GE iFix host.
  • Fixed [#11589] (VBA): The Tab key didn’t navigate correctly in the Code Library.
  • Fixed [Internal] (All): The dialog to download an updated version didn’t set correctly the position of a label.
  • Fixed [Internal] (VBA): MZ-Tools could not be loaded in the VBA editor of Office 2000 on Windows XP with .NET Framework 2.0.

Introducing MZ-Tools 8.0 for VBA Portable Edition

$
0
0

MZ-Tools 8.0 for VBA, released a year ago, already introduced an innovation in the world of add-ins for the VBA editor allowing to install it without admin rights, something that was quite requested because in many companies users of Office are not admin users (and that’s right).

The build 8.0.0.106 released yesterday, in the first anniversary, introduces yet another innovation in this area: a portable edition. That’s right, you can now run MZ-Tools 8.0 for VBA without running a setup. You can even run it from a USB drive if you want, without copying any file to the hard disk of your computer. This scenario is not so much requested, but it seems that there are companies where users are not allowed (by group policies) to run any kind of setup (even those setups that don’t require admin rights), and maybe even PowerShell or regedit.exe are not allowed either.

So, a portable edition is now provided. The setup edition is still not only provided but also recommended (at least for now). The portable edition is suitable for the scenarios mentioned above.

When you download the portable edition, you get a MZTools8VBAPortable.zip file that, when unzipped, has this file structure:

mztoolsvbaportablefiles

There is a MZTools8VBAPortable.exe executable (with a .config file to allow it to run on whatever .NET Framework you have installed, 2.0 or 4.0) and a Files folder, that contains the files (dlls) and the options files (although you can configure the options files anywhere).

When you run the MZTools8VBAPortable.exe file, you get a dialog to register MZ-Tools 8.0 for VBA in the VBA editor:

mztools8vbaportable

And, of course, you can unregister it if you want.

MZ-Tools 8.0.0.110 released with bug fixes

$
0
0

Today a new build 8.0.0.110 has been released, as every month, with some bug fixes. Now I am working on compatibility with VS “15”.

The complete changelog is the following:

MZ-Tools 8.0.0.110 released (November 1, 2016)

  • Fixed [#11589] (All): The Code Library and other tree-based lists were not sorted ignoring case.
  • Fixed [#11613] (All): The Review Headers did not skip DllImport / Declare methods.
  • Fixed [#11638] (VS): System.NotImplementedException “The method or operation is not implemented.” could happen when using SQL Server Database Projects that reference databases.
  • Fixed [#11601] (VB/VBA): The Ctrl+F keyboard shortcut was not allowed to be assigned to the Find Text feature of MZ-Tools to override the Find feature of VB/VBA.
  • Fixed [#11624] (VB/VBA): The New Property Assistant showed an empty list for headers if both Get/Let-Set radiobuttons were selected.
  • Fixed [#11623] (VB/VBA): The Review Dead Code didn’t ignore parameters of callbacks of Ribbon code.
  • Fixed [#11643] (VB5/VB6): The Find text window and the Results window did not work correctly at debug or run-time.
  • Fixed [#11592] (VBA): “System.InvalidCastException: Unable to cast COM object of type ‘System.__ComObject’ to class type ‘System.Windows.Forms.UserControl'” happened if an old version was installed with admin rights and a newer version was installed without admin rights and without uninstalling the previous version.

MZ-Tools 8.0.0.116 and 8.0.0.120 released with VS 2017 RC support and bug fixes

$
0
0

The past November 16 a new build 8.0.0.116 was released with some bug fixes and, more importantly, with support for the Visual Studio 2017 Release Candidate 1 announced by Microsoft at the Connect(); 2016 event.

Today a new build 8.0.0.120 has been released with new bug fixes, one of them specially important if you are using Visual Basic 6.0 since the Rename Related Source Code feature was crashing usercontrols.

Also, this month the MZ-Tools website started to use https and this caused a problem in the Check for Updates feature that is now fixed.

The changelogs are the following:

MZ-Tools 8.0.0.116 released (November 16, 2016)

  • New (VS): Added support for VS 2017 RC.
  • Fixed [#11691] (All): The Generate HTML Output Documentation removed indentation of comments in headers.
  • Fixed [#11662] (All): The Dead Code Review didn’t parse correctly statements that were not Dim declarations in lines that started with Dim declarations.
  • Fixed [#11670] (VB/VBA): The Replace feature could cause System.ArgumentOutOfRangeException “Index and length must refer to a location within the string” could happen in some cases.
  • Fixed [#11666] (VBA): LongLong and LongPtr types were not recognized.
  • Fixed [#11695] (VBA): The TabIndex Assistant and other features duplicated a control if the parent was a Frame control inside another Frame control.

MZ-Tools 8.0.0.120 released (December 1, 2016)

  • Fixed [#11715] (All): The Check for updates feature caused “http://www.mztools.com/v8/latestversion.txt” not found because of https.
  • Fixed [#11716] (All): The Review Code Element Headers could cause System.ArgumentNullException “Value cannot be null”.
  • Fixed [#11724] (All): MZ-Tools entry is no longer created in Control Panel > Programs and features if silent switches are used for automated deployments.
  • Fixed [#11703, #11704] (VB6): Custom control crashed when renamed if the “Rename Related Source Code” feature was activated.

Moving from MZ-Tools 3.0 to 8.0 Part 32: A Code Explorer

$
0
0

The build 8.0.0.130 released on January 1, 2017, introduces another very requested feature: a Code Explorer. This feature provides you a list with all the code elements of the active code window:

The Code Explorer shows the code elements of the following kinds:

  • Constants
  • Fields
  • Enums
  • Events
  • User-Defined Types
  • Properties
  • Methods

On the toolbar there are seven toggle buttons to show/hide the code elements of a particular kind. Here you can see the Code Explorer showing only fields:

Furthermore, to the right of the toolbar you have a textbox to enter any text, so that only the code elements containing that text are shown:

And selecting any code element in the list shows it in the code window. I hope that you find this tool productive to locate your code faster!

MZ-Tools 8.0.0.130 released introducing a Code Explorer and drag & drop in TabIndex Assistant

$
0
0

Last January 1 another monthly build was released, 8.0.0.130. This time, apart from some bug fixes, it introduces a new feature: a file code explorer:

You can read more about the Code Explorer on this post: Moving from MZ-Tools 3.0 to 8.0 Part 32: A Code Explorer.

Also, support for drag & drop in the TabIndex Assistant is reintroduced (this was supported in MZ-Tools 3.0, but not in MZ-Tools 8.0 until now).

The complete changelog is the following:

MZ-Tools 8.0.0.130 released (January 1, 2017)

  • New (VB/VBA): Code Explorer.
  • Enhanced [#11723] (All): Added support for drag & drop in TabIndex Assistant, Switch Assistant and other listviews.
  • Fixed [#11779] (All): The Programming Rules Review didn’t locate results using regular expressions when the found text ended with carriage return without line feed.
  • Fixed [#11775] (All): The Code Element Headers Review caused “Unterminated [] set” with headers that included parameters of array types.
  • Fixed [#11750] (All): The Generate HTML documentation could cause System.Xml.XmlException: hexadecimal value is an invalid character.
  • Fixed [#11739, #11749, #11757] (VB/VBA): The language of the user interface was always English on Windows 7. This bug was introduced in build 8.0.0.120.
  • Fixed [#11766] (VS): The New Method/Property Assistant added quotes to the initial value String.Empty.
  • Fixed [#11804] (VBA): The Find feature could cause System.ArgumentOutOfRangeException when using the VBA editor with double-byte encondings.
  • Fixed [Internal] (VB): The Generate Documentation (XML/HTML) could cause System.NullReferenceException (“System Error &H80004003. Invalid pointer”) if the operation was executed twice.
  • Fixed [Internal] (VBA): The width of buttons on toolbars was not correct when using high-DPI displays.

MZ-Tools 8.0.0.135 released introducing enhanced programming rules reviews, enhancements and bug fixes

$
0
0

Today a new build 8.0.0.135 of MZ-Tools has been released with some bug fixes and interesting enhancements:

The Programming Rules Review now shows all violations of rules that use the “Not Containing” and “Not Matching” operators. So, for example, if you don’t want to use the Static modifier in procedure variables, now you get all the occurrences, not only the first one:

More importantly, the Programming Rules Review now allows to define a programming rule that is quite requested: if the code of a method (or module) contains some expression, then the code of that method (or module) must contain also some other expression. For example, if a method opens a recordset, it must close that recordset (or set a variable to Nothing). How this is done will be the subject of a separate post.

For VB/VBA, the Code Explorer and other features now distinguish between procedures that are subroutines (Sub) and procedures that are functions (Function). Notice the new icons and the separate filters:

The Options dialog now uses a more modern dialog to select a folder, that allows you to type (or paste) the full path to the folder:

The complete changelog is the following:

  • Enhanced [#11869] (All): The Programming Rules Review now allows regular expressions backreferences in the Value field of a condition for captures in the value field of a When condition.
  • Enhanced [Internal] (All): The Programming Rules Review now shows all violations using the “Not Containing” and “Not Matching” operators.
  • Enhanced [#11837] (All): On Windows Vista or higher you can now type the location of the options files, with a new folder browser dialog.
  • Enhanced [#11874] (VB/VBA): Features that deal with procedures now distinguish between Subs and Functions.
  • Fixed [#11886] (All): The Private Clipboards dialog now allows to click the OK button by keyboard using Alt+O.
  • Fixed [#11863] (All): The Find Text feature didn’t allow regular expressions when using Multiline.
  • Fixed [#11883] (VB/VBA): The Statistics feature now includes only text files that are recognized text files or parents of code files.
  • Fixed [#11880] (VB/VBA): Event handlers were considered dead code if used all lower case.
  • Fixed [#11866] (VBA): The Insert Header feature can cause NullReferenceException when used with CSS files (which are unsupported).
  • Fixed [#11845] (VBA): The Line Indenter didn’t parse correctly lines with the space + comment character sequence inside a string.
  • Fixed [#11825] (VBA): After inserting a code template, the code window didn’t get the focus.
  • Fixed [#11837] (VBA): On Windows Vista or higher you can now type the location of the options files, with a new folder browser dialog.
  • Fixed [#11858] (VBA): The Database Connection Assistant didn’t show the connection string with the MySQL ODBC driver.
  • Fixed [#11894] (VBA): The scope “Open files” didn’t work in Microsoft Access.
  • Fixed [Internal] (All): The Programming Rules Review caused exceptions if invalid regular expressions were used.

MZ-Tools 8.0.0.144 released with several enhancements and bug fixes

$
0
0

Today a new build 8.0.0.144 of MZ-Tools has been released with some bug fixes and several important enhancements thanks to your feedback, including a feature of MZ-Tools 3.0 that was not available yet on MZ-Tools 8.0: the ability to save files at debug-time (with a keyboard shortcut). New File/Method properties such as CodeLineCount, CommentLineCount, BlankLineCount, etc. (and the equivalent ones as percentages) have been added to the programming rules review, so that you now can create rules of the type “If you create spaghetti code, at least comment it profusely” :-). If you are a VBA user, toolwindows such as the Code Explorer now refresh automatically when the active window changes. The Insert Header is now more usable: there is a new menu entry on the context menu of the code window, and to insert a header to a file you can now put the cursor at any column of line 1 (not at column 1 as before). Also, the headers can use now two new predefined variables to define a section for the return value of a method or property. The whole section is deleted if the method doesn’t return a value, so you can define a unified header for Sub and Function methods. Finally, this build introduces a more streamlined experience in the Check for Updates feature requiring fewer clicks to update (you will notice this in the next monthly build).

The complete changelog is the following:

  • New (VB6/VB5): Keyboard shortcut to save file at debug-time (this feature was in MZ-Tools 3.0).
  • Enhanced [#11944] (All): Added the following properties to the Programming Rules Review: LineCount (formerly CodeLineCount, which changes the meaning), CommentLineCount, BlankLineCount, CodeLinePercentage, CommentLinePercentage, BlankLinePercentage.
  • Enhanced [#11910] (All): The check for updates process requires now fewer clicks to install the latest version.
  • Enhanced [#11924] (All): The context menu of the code window now provides the “Insert Header” meny entry.
  • Enhanced [#11857] (VBA): Toolwindows (Code Explorer, TabIndex Assistant, etc.) are now refreshed automatically when the active window changes.
  • Enhanced [#11924] (VB/VBA): The Insert Header feature now allows the cursor on any column of line 1 when inserting a class or module header.
  • Enhanced [#11946] (All): Added predefines variables “Method Return Section Begin” and “Method Return Section End” to exclude information about the return type in headers for methods that don’t return a value (“void” in C#, “Sub” in VB, etc.).
  • Enhanced [Internal] (VBA): The portable edition provides the option to isolate or not MZ-Tools, and the Com Shim provides better diagnostics.
  • Fixed [#11957] (VBA): The scope “Open files” didn’t work if the filename contained the “-” character.
  • Fixed [#11902] (All): In the dialog to enter the values of user-defined variables, if the value of a user variable was long enough to show the horizontal scrollbar in the preview richtextbox, the textbox with the value lost the focus.
  • Fixed [#11920] (All): NullReferenceException could happen in some circumstances.
  • Fixed [#11899] (VB/VBA): The Initialize and Terminate methods of classes were not shown in Code Explorer, and no icon was shown for them in the results window. This bug was introduced in build 8.0.0.135.
  • Fixed [#11903] (VB/VBA): Some features such as the Line Indenter caused error with comments that included again the comment character. This bug was introduced in build 8.0.0.135.
  • Fixed [#11958] (VB/VBA): The Insert Error Handler and other features don’t work correctly if the method declaration contains optional parameters initialized with dates or quotes that include the ‘:’ character.
  • Fixed [#11901] (VS): The Results window didn’t locate correctly variables declared with the same name in different blocks of the same method.
  • Fixed [Internal] (VB5/VB6): The main toolbar didn’t show all the buttons when using a resolution of 1280 horizontal pixels due to the new Code Explorer button. Now the Collapse Projects button has been moved to the Other Utilities toolbar. This bug was introduced in build 8.0.0.130.
  • Fixed [#11947, #11954] (VB/VBA): The Code Explorer could cause System.Runtime.InteropServices.COMException (0x80020010): Invalid callee. (Exception from HRESULT: 0x80020010 (DISP_E_BADCALLEE)).

MZ-Tools 8.0.0.149 released with several enhancements and bug fixes

$
0
0

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.

MZ-Tools 8.0.0.158 released with several enhancements and bug fixes

$
0
0

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.

MZ-Tools 8.0.0.162 released with several enhancements and bug fixes

$
0
0

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.

MZ-Tools 8.0.0.164 released with enhancements and fixes

$
0
0

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.

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

$
0
0

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.

MZ-Tools 8.0.0.169 released with bug fixes

$
0
0

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.

MZ-Tools 8.0.0.172 released with bug fixes

$
0
0

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.

 


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

$
0
0

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.

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

$
0
0

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.

New build MZ-Tools 8.0.0.176

$
0
0

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.

New build MZ-Tools 8.0.0.178

$
0
0

Last week a new monthly build of MZ-Tools, 8.0.0.178, was released with some enhancements and fixes that you have reported in the previous month. The changes are the following:

MZ-Tools 8.0.0.178 released (March 1, 2018)
  • Enhanced [#12782] (All): When closing a result tab, now the previously selected result tab is selected.
  • Enhanced [#12814] (VB): When locating a result, the code window is not scrolled if the line of the result is already visible in the code window.
  • Fixed [#12833] (All): The Replace feature didn’t support “\r\n”, “\r” or “\n” in regular expressions.
  • Fixed [Internal] (All): The Replace feature used \number instead of $number to replace capture groups in regular expressions”.
  • Fixed [#12808] (VB): The line indenter did not parse correctly Type declarations with fields named Type in some cases.
  • Fixed [#12815, #12824] (VB): The line indenter and other features could cause “System.InvalidOperationException: Invalid new line counter” when using conditional compilation and duplicated procedures
  • Fixed [#12799] (VS): The Sort Code Elements feature added quotes to inserted regions in C#.
  • Fixed [#12830] (VS): The Insert Header feature deleted the selected code when executed.
  • Fixed [#12797] (VS): The New Property Assistant didn’t support initializers in auto-implemented properties in Visual Studio 2015 and higher.
  • Fixed [Internal] (VS): The New Property Assistant didn’t support read-only auto-implemented properties in Visual Studio 2015 and higher.
  • Fixed [Internal] (VS): The New Property Assistant didn’t make visible the Automatic style radiobutton after making it invisible.

New build MZ-Tools 8.0.0.180

$
0
0

A new build of MZ-Tools, 8.0.0.180, has been released today, fixing some bugs. Some of them are quite important, though: one of them fixes crashes that happened unloading Microsoft Project (the root cause is a bug in the extensibility model of that product, but hopefully I have found workarounds to avoid it). Another one for Microsoft Outlook will prevent an error when auto-updating in the next month. And finally, this new build fixes a problem that was happening since 15+ years ago: keyboard shortcuts were executed in Office even if the VBA editor was not the active window (potentially conflicting with keyboard shortcuts of Office). This new build avoids the use of global hotkeys and also recognizes when the VBA editor is active.

The complete changelog is the following:

MZ-Tools 8.0.0.180 released (April 1, 2018)

  • Fixed [#12874] (VS): The Find Text feature didn’t locate results if the end point of a result using regular expressions was between the \r and \n characters.
  • Fixed [#12873] (VB/VBA): The type of a member of a UDT was not parsed correctly if it contained a comment or the “New” keyword.
  • Fixed [#12918] (VB/VBA): Declare Sub and Declare Function were not parsed correctly if they contain comment or blank lines before the declaration.
  • Fixed [#12890] (VBA): Updating MZ-Tools from the VBA editor of Outlook caused error “Cannot start Microsoft Outlook. The command line argument is not valid. Verify the switch you are using.”
  • Fixed [#12881, #11396, #11942] (VB/VBA): Keyboard shortcuts were executed even if the IDE was not the active window.
  • Fixed [#12922] (VBA): MZ-Tools crashed when closing Microsoft Project.
Viewing all 74 articles
Browse latest View live