VB Migration Partner

KNOWLEDGE BASE - Database and data-binding


Previous | Index | Next 

[PRB] DataGrid and MSHFlexGrid controls don’t work as expected and/or throw exceptions

The VB6DataGrid and VB6MSHFlexGrid controls are just wrappers over the original DataGrid and MSHFlexGrid ActiveX controls, respectively. While many of their properties, methods, and events work as expected, at times they can exhibit unexpected behavior. For example, columns are often wider than in the original application. Also, write access violation exceptions can occur when the user selects two or more rows using the Ctrl+Click combination.

We have found that using grid controls via COM Interop isn’t a wise decision, and we strongly discourage from using the current version of these controls in production code.

There are no trivial workaround to this problem, because it’s inherent to the COM Interop technology and doesn’t depend on VB Migration Partner. In the feature we might offer a solution in the form of a fully managed version of the VB6DataGrid control that doesn’t depend on COM Interop.

Previous | Index | Next 




Follow Francesco Balena on VB6 migration’s group on

LinkedIn





Read Microsoft Corp’s official case study of a VB6 conversion using VB Migration Partner.




Code Architects and its partners offers remote and onsite migration services.

More details




Subscribe to our free newsletter for useful VB6 migration tips and techniques.

newsletter



To learn more about your VB6 applications, run VB6 Analyzer on your source code and send us the generated text file. You will receive a detailed report about your VB6 applications and how VB Migration Partner can help you to quickly and effectively migrate it to .NET.

Get free advice



A fully-working, time-limited Trial Edition of VB Migration Partner allows you to test it against your actual code

Get the Trial




The price of VB Migration Partner depends on the size of the VB6 application, the type of license, and other factors

Request a quote




Migrating a VB6 application in 10 easy steps

Comparing VB Migration Partner with Upgrade Wizard

Migration tools: Feature Comparison Table

All whitepapers