Hello Craig,
I can't think of any other way. Take into account that that icon represents
the form's ControlBox, so I don't think it has a quick and dirty way of making
it invisible. I'd go for the hack =)
Regards,
Carlos M Perez
http://www.picacodigos.com mailto:carlosm.perez@gmail.com
C> Hi Carlos
C>
C> You know I thought about doing that but dismissed it as a hack
C> work-around. I would have thought setting the Icon=null would have
C> done the trick.
C>
C> Craig
C>
[quoted text, click to view] C> "Carlos Manuel Perez Fernandez" wrote:
C>
>> Hello Craig,
>>
>> Have you tried making a completely transparent icon and assigning it
>> to the Form?
>>
>> Regards,
>> Carlos M Perez
>>
http://www.picacodigos.com >> mailto:carlosm.perez@gmail.com
>> C> Thanks for the reply, I forgot to mention I want to retain the
>> form
>> C> Close [X] control box.
>> C>
>> C> Craig
>> C>
>> C> "Carlos Manuel Perez Fernandez" wrote:
>> C>
>>>> Hello Craig,
>>>>
>>>>> Hi
>>>>>
>>>>> If you have a form where the FormBorderStyle=Sizable and no icon
>>>>> is assigned to the form; you get the WindowsForms 'generic' icon.
>>>>>
>>>>> Is there a way to remove the 'generic' icon and have no icon
>>>>> displayed?
>>>>>
>>>>> I tried setting the Icon property to Null in code but this didn't
>>>>> have any effect.
>>>>>
>>>> Set the ControlBox property to FALSE.
>>>>
>>>> Regards,
>>>> Carlos M Pere