Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Good morning to everyone. How to dynamically close the window form in the program when a button is clicked? X|
Posted
Updated 19-Feb-10 7:10am
v3

Good evening.
I would call the form's Close method in the button's Click event handler.
:)
 
Share this answer
 
I don't want to be rude or anything, but seriously, buy a beginners book of C#, that way you will get your answers in a faster way and you will understand many other things, like the framework, generics, classes, variables, how to do a "Hello World" application, etc.
I've already suggested two books to you in another thread, and if buying a book is out scope, there's a wonderful search engine in the internet that is called.... yes!!! you're right.... GOOGLE!!! if you don't like Google, you can try Bing or Yahoo too and I'm sure you will find your answers there with simple words like "close form c#" give it a try and you will see how fast you can have your answers

:cool:
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900