Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Form Icon

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig - 29 Jan 2007 02:07 GMT
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.
Carlos Manuel Perez Fernandez - 29 Jan 2007 09:23 GMT
Hello Craig,

> Hi
>
[quoted text clipped - 6 lines]
> 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
Craig - 29 Jan 2007 10:22 GMT
Thanks for the reply, I forgot to mention I want to retain the form Close [X]
control box.

Craig

> Hello Craig,
>
[quoted text clipped - 13 lines]
> Regards,
> Carlos M Perez
Carlos Manuel Perez Fernandez - 29 Jan 2007 10:28 GMT
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,
>>
[quoted text clipped - 13 lines]
>> Regards,
>> Carlos M Perez
Craig - 29 Jan 2007 10:39 GMT
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

> Hello Craig,
>
[quoted text clipped - 30 lines]
> >> Regards,
> >> Carlos M Perez
Carlos Manuel Perez Fernandez - 29 Jan 2007 10:40 GMT
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>
C> "Carlos Manuel Perez Fernandez" wrote:
C>
>> Hello Craig,
>>
[quoted text clipped - 30 lines]
>>>> Regards,
>>>> Carlos M Pere
Herfried K. Wagner [MVP] - 29 Jan 2007 19:03 GMT
"Carlos Manuel Perez Fernandez" <carlosm.perez@gmail.com> schrieb:
> 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.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

Otis Mukinfus - 29 Jan 2007 12:22 GMT
>Hi
>
[quoted text clipped - 5 lines]
>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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.