"Lespaul36" <le*******@none.net> wrote in message
news:eh**************@TK2MSFTNGP09.phx.gbl...
I have the imagelist ColorDepth set to Depth32Bit
I added the line Application.EnableVisualStyles() to the load event of my
usercontrol. still the same thing am I missing anyting?
I am a bit new to the .Net side sorry for all the questions.
Thanks again.
Application.EnableVisualStyles should be in Sub Main(). It should be the
first method called by your application, it is not meant for user controls.
Add the following to the Main Form of your application replacing MainForm
with the name of your startup form which would be Form1 by default.
Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MainForm)
End Sub
--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004