Title: Avoiding XP Theme Crash Description: Study of why vb6 applications with xp theme enabled sometimes crashes when closed. I have included an example of an application that crashed and two examples to show how to prevent it from crashing. Conclusions: It seems to be related to XP Theme not being closed correctly when an internal vb6 UserControl is placed on the main form. A simple way to fix this is to ensure it gets cleaned up either by placing an imagelist or a commond dlg control on the form. Unzip the download and compile each of the 3 examples and study the source. I have tried to keep it as simple as possible. Votes appreciated :) This file came from Planet-Source-Code.com...the home millions of lines of source code You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=69786&lngWId=1 The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.