form closing event?with help of button control(windows applications)

Posted by Sudheep.grandhe under C# on 11/19/2011 | Points: 10 | Views : 1439 | Status : [Member] | Replies : 1
Hi,

i want to close my form with help of button control.For eg: i have a form like registration in that cancel button is there.if the user clicks on cancel button the entire form has to close.please do the needful.

Best,
Sudheep.



Responses

Posted by: Blessyjees on: 11/21/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

If you want to close the application on the button click use

this.Close()
or want to only hide the form use
this.hide()

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response