Application.EnableVisualStyles and Application.DoEvents must be called in
Sub Main(), not Sub New()
i.e.
\\\
Shared Sub Main
Application.EnableVisualStyles
Application.DoEvents
Application.Run (New Form1)
End Sub
///
Alternatively, populate the imagelist during or after form load, or add a
manifest resource to the exe after you have built it.
--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"#ROBERT" <ro****@mailfsf.com> wrote in message
news:OF**************@TK2MSFTNGP14.phx.gbl...
No way... it is just the same.
---------------
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl... "#ROBERT" <ro****@mailfsf.com> schrieb: Calling Application.EnableVisualStyles() after the initialization()
removes
all images in the tab control (in the tab headers I mean). Without
visual styles enabled, I have no
problem. What is wrong and what is the solution?
Call 'Application.DoEvents' directly after calling 'EnableVisualStyles'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>