Replacing default close button
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! :)
AlexPosted Mar 13, 2007, 11:15 AM
Suraj RaiPosted Mar 13, 2007, 7:12 AM
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....