I started working on a VB version based solely on the article, but it was slow work - so I downloaded the project from CodeProject and read through the complete c# source code. There is a fair bit of "low level" code in there and as you say that you are new to VB 2005, you may, for now at least, struggle to understand it as it uses some advanced techniques.
The good news - you don't need the code in c# or in VB.
Download the project from CodeProject - if you are not a member you will need to register (registration is free).
For simplicty, create a folder in the root of Drive C: called CodeProjectDownloads.
Unzip the downloaded file (I'm assuming therefore that you unzip to C:\CodeProjectDownloads\) .
Open up your project in VS 2005
I'm using VS2008, so the following highlighted menu selections may have slightly different names on your system.
On the ToolBox, right click on a blank area and select
Add Tab, when prompted, name the new Tab (anything you like for example CodeProject Controls).
When the new tab has been created, right click on a blank area in the new tab and select
Choose Items.... A dialog box will open, make sure that the .NET tab is selected and then click on the Browse button. You will need to locate the following file:
C:\CodeProjectDownloads\mdiclientcontroller_src\MdiClientController\bin\Release\MdiClientController.dll
Then click on Apply, or OK or whatever the appropriate button is in VS 2005.
You should now see the MdiClientController component in your ToolBox.
In your project, remove the image from the MDIParent Form.
Add the MdiClientController to the MdiParent Form. It won't actually go on the form, instead it will be placed in the Component Tray at the bottom of the form.
Select MdiClientController1 and set the following properties:
AutoScroll: False
Image: set this to the required background image
You also have:
BorderStyle, ImageAlign and StretchImage that you can set if you need/wish.
The beauty of this approach is that you do not need to write a single line of code, and when you feel ready, you have access to the source code to study.
I've tested the control and it seems to work perfectly, with no fading of the image (although the image didn't fade when the ScrollBars were operational either - so I don't know what that problem was).
Hope this helps.
![[vampire] [vampire] [vampire]](/data/assets/smilies/vampire.gif)
![[bat] [bat] [bat]](/data/assets/smilies/bat.gif)