In my VB6 app I have one form that can be used for several things, and depending on what it's used for it changes its icon.
In the development environment this works fine, but when in a compiled and installed app the icons come out as negative versions of what they should, like a film negative with all the colours reversed (see attached picture)
I have tried:
Loading the icon from another form
Me.Icon = frmIcons.imgDefIcon(0).Pic
Loading the icon directly from the source file.
Me.Icon = LoadPicture("C:\Projects\I
Both cause the same problem. This only happens on the forms that change their icon, not on ones that keep the one specified at design time.
I load icons from other forms all the time, and this works fine in the IDE or on a compiled program, but it doesn't seem to work when it's settign the form icon, as opposed to an icon displayed somewhere else on the form.