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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> No way... it is just the same.
> ---------------
> "Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> "#ROBERT" <(E-Mail Removed)> 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/>
>
>