Form Icon

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
Thanks for the reply, I forgot to mention I want to retain the form Close [X]
control box.

Craig
 
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:[email protected]

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>
 
Hi Carlos

You know I thought about doing that but dismissed it as a hack work-around.
I would have thought setting the Icon=null would have done the trick.

Craig

Carlos Manuel Perez Fernandez said:
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:[email protected]

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,

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:[email protected]

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>
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:[email protected]
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
 
Hi Carlos

I'll email you if you'd like to send me the transparent icon image.

thanks for you help.

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 ShowIcon property to false.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 
Carlos Manuel Perez Fernandez said:
Have you tried making a completely transparent icon and assigning it to
the Form?

This will cause an indented caption if a caption is specified.
 
Back
Top