I recently downloaded the 'Custom Background Colours in MdiForm / MdiChild.' from the code bank and tested it out and it worked fine. Then I procceded to mess around with it and add some other controls. Come to find out, when you add more control to the form, you get an error because of this line:
VB Code:
For each MdiCtl as MdiClient in Controls
Dim MdiPainter As New MdiContainer(MdiCtl)
Next
The Child forms work fine, its just the MdiContainer that I keep having problems with, anyone got any ideas?