Click here to Skip to main content
15,883,734 members
Articles / Programming Languages / C#
Tip/Trick

Simple Trick To Make Form Invisible

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
15 Jun 2011CPOL 20.1K   6   3
C#
private int Invisible
       {
           get
           {
               return this.Handle.ToInt32();
           }
       }

       protected override CreateParams CreateParams
       {
           get
           {
               CreateParams p = base.CreateParams;
               p.ClassStyle =  Invisible;
               return p;
           }
       }

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
I do not claim to be wrong! I just rarely ever write.

Comments and Discussions

 
GeneralCan you please post some code to show use of the "CreatePara... Pin
RakeshMeena15-Jun-11 19:13
RakeshMeena15-Jun-11 19:13 
GeneralRe: Check out my Tip trick <a href="http://www.codeproject.com/T... Pin
charles henington23-Jun-11 14:36
charles henington23-Jun-11 14:36 
GeneralRe: Did you Find the link useful? Pin
charles henington9-Jul-11 14:15
charles henington9-Jul-11 14:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.