Version 0.96 available to beta testers

clock March 22, 2008 08:21


We have just uploaded version 0.96. There are very few new features, namely

  • the SendToBack pragma allows you to finely control the z-ordering of controls
  • he MoveControlOverButton special method of the Toolbar control makes it easy to remedy to the fact that the .NET toolbar can't work as a control container (unlike the VB6 toolbar)
  • VB Migration Partner now correctly migrates the Command Line string that you set in the Make tab of the Project Properties dialog box

Of course we've also fixed several bugs, most of which related to the MaskEdBox control and the DAO/RDO data controls. More details are available in the Version History.txt file.

We are quickly approaching version 1.0, which we plan to release in mid-April. The beta test program officially ended some weeks ago, we apologize that we had to reject all subsequent requests.

Play battleship with VB Migration Partner!

clock March 12, 2008 05:07

We found a very nice VB6 sample, that allows two opponents to play battleship from two different computers, even across the Internet. The program consists of a server portion and a client portion, and the two use the Winsock control to communicate. The VB6 code uses also a lot of graphic statements to implement a nice user interface.

Thanks to VB Migration Partner, it took us only a few minutes and some pragmas to convert this game to VB.NET.

You can find the result in our Code Sample section. Enjoy! 


One step closer to release 1.0 !

clock March 6, 2008 06:31

Last night we released version 0.95. It doesn't add any new feature, yet it is an important milestones because this version has reached the zero-known-bug stage for the parser & code generation engine. We are quickly fixing all the known problems in the support library and are getting closer to the official 1.0 release.Smile



The new parser & code generator is truly as sophisticated as it can possibly be. Here's a little example of what version 0.95 is able to do.

Consider the following statements:

    Dim tw As New TextboxWrapper
    tw.FieldBox = Form1.Text1      ' where FieldBox is defined in TextboxWrapper.cls as a property that takes and returns a TextBox control

According to standard VB6 rules, the lack of the SET keyword should imply that you are assigning the default Text property of Form1.Text1 to the default Text property of the control referenced by the FieldBox property. As a matter of fact, the Upgrade Wizard that comes with Visual Studio (as well as previous versions of VB Migration Partner) translate the above assignment as follows:

    tw.FieldBox.Text = Form1.Text1.Text

However, one of our beta testers discovered the following undocumented VB6 behavior: if the FieldBox is (mistakenly) defined by means of a Property Let procedure (instead of Property Set), then VB6 performs an object reference assignment even if the SET keyword has been omitted. Never head of it previously! However, we want to promote VB Migration Partner as a "It just works!" code migrator, therefore we decided to emit VB.NET code that perfectly mimics the original VB6 behavior:

    tw.FieldBox = Form1.Text1    ' in VB.NET this is an object assignment

I am not mentioning this feature because I think it will be of interested to many VB Migration Partner users, but only to emphasize that our code translator is easily the most sophisticated you can find anywhere...

Together with version 0.95 we are releasing a new code sample, named Cool ProgressBar. It's a custom control written in VB6 which, as its name implies, implements a better, eye-catching progress bar, with gradient colors and other intriguing features. It's a nontrivial piece of code that uses a lot of Windows API and GDI programming, yet it took us just a few minutes (and 4 pragmas) to migrate it correctly to VB.NET. Even if you don't care about VB Migration Partner, you can download the code sample to see how those features were implemented and - if you wish - use this new control in your .NET apps.


Follow Francesco Balena on VB6 migration’s group on


VB Migration Partner - Subscribe to our feed RSS  blog RSS
AddThis Feed Button

Home blog
AddThis Social Bookmark Button


Sign in



<<  May 2017  >>




Microsoft Regional Director
Microsoft is a registered trademark of Microsoft Corporation in the United States and other countries and is used under license from Microsoft

My programming tools

VB Migration Partner


My books

Programming Microsoft Visual Basic 6

Programming Microsoft Visual Basic 2005: The Language

Practical Guidelines and Best Practices for Microsoft Visual Basic .NET and Visual C# Developers