Skip to content

Replacing default close button

Alex

Asked Mar 12, 2007, 12:47 PM EDT2 answers
Share
LinkedInX
Hi, I'm having trouble with replacing the default close button of my form with my own icon. What i basicaly want as result is something similiar to this: http://img259.imageshack.us/img259/7335/game1ud7.png It would be nice if i could replace that whole part in my form with my own one. Any suggestions? Thanks allot in advance! :)

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi,

       Set Forms FormBorderStyle property to None....and then place ur own close button image....most probably upon a label....

    double click your close button and write ur code for closing the form...

     like this....

    private void btnMyCloseButton_Click(object sender, EventArgs e)

    {

    this.Close();

    }

    hope this helps....

    0
  • 1 short reply
    • 0
      Thanks, it worked! :)
      0