Click here to Skip to main content
16,006,442 members
Home / Discussions / C#
   

C#

 
GeneralRe: Add dropdownlist to datalist Pin
Heath Stewart9-Oct-04 11:43
protectorHeath Stewart9-Oct-04 11:43 
GeneralNDoc 1.2 Problems Pin
Kevin McFarlane9-Oct-04 5:12
Kevin McFarlane9-Oct-04 5:12 
GeneralRe: NDoc 1.2 Problems Pin
Colin Angus Mackay9-Oct-04 5:49
Colin Angus Mackay9-Oct-04 5:49 
GeneralRe: NDoc 1.2 Problems Pin
Kevin McFarlane9-Oct-04 6:43
Kevin McFarlane9-Oct-04 6:43 
GeneralRe: NDoc 1.2 Problems Pin
Heath Stewart9-Oct-04 7:41
protectorHeath Stewart9-Oct-04 7:41 
Generalhide form from close button Pin
Mridang Agarwalla9-Oct-04 3:40
Mridang Agarwalla9-Oct-04 3:40 
GeneralRe: hide form from close button Pin
Colin Angus Mackay9-Oct-04 3:56
Colin Angus Mackay9-Oct-04 3:56 
GeneralRe: hide form from close button Pin
Colin Angus Mackay16-Oct-04 6:11
Colin Angus Mackay16-Oct-04 6:11 
I don't reply to direct emails so I am answering you on the forum.

In an email Mridang Agarwal wrote:
no....i want to hide the form when he clicks the close button....i dont want to display any messages
....how do i do this....


That was simple an example of what is 'normally' performed in the Closing event. As I already said:

Colin Angus Mackay previously wrote:
However you can do what you like with it, including cancelling the Close operation, you'll see there is a property in the event arguments for the closing event that permits you to stop the form being closed. Instead you will do your own thing to hide or minimise the form.

So, as you see, in your event handler for the Closing event you cancel the form closing, and instead Hide the form.
private void NameOfFormClass_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
	e.Cancel=true;
	this.Hide();
}




Do you want to know more?


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
GeneralRe: hide form from close button Pin
Anonymous17-Oct-04 0:13
Anonymous17-Oct-04 0:13 
GeneralRe: hide form from close button Pin
Colin Angus Mackay17-Oct-04 1:20
Colin Angus Mackay17-Oct-04 1:20 
Generalwav managing Pin
jeroni_brunet9-Oct-04 3:32
jeroni_brunet9-Oct-04 3:32 
GeneralRe: wav managing Pin
Colin Angus Mackay9-Oct-04 4:07
Colin Angus Mackay9-Oct-04 4:07 
GeneralRe: wav managing Pin
jeroni_brunet9-Oct-04 9:28
jeroni_brunet9-Oct-04 9:28 
GeneralRe: wav managing Pin
Colin Angus Mackay9-Oct-04 9:39
Colin Angus Mackay9-Oct-04 9:39 
GeneralRe: wav managing Pin
jeroni_brunet9-Oct-04 12:09
jeroni_brunet9-Oct-04 12:09 
GeneralRe: wav managing Pin
Colin Angus Mackay9-Oct-04 13:48
Colin Angus Mackay9-Oct-04 13:48 
GeneralRe: wav managing Pin
jeroni_brunet10-Oct-04 12:54
jeroni_brunet10-Oct-04 12:54 
Generalhttps authentification Pin
Member 14156909-Oct-04 1:43
Member 14156909-Oct-04 1:43 
GeneralRe: https authentification Pin
Colin Angus Mackay9-Oct-04 4:16
Colin Angus Mackay9-Oct-04 4:16 
GeneralRe: https authentification Pin
Member 14156909-Oct-04 4:31
Member 14156909-Oct-04 4:31 
GeneralRe: https authentification Pin
Colin Angus Mackay9-Oct-04 4:38
Colin Angus Mackay9-Oct-04 4:38 
GeneralRe: https authentification Pin
Member 14156909-Oct-04 6:46
Member 14156909-Oct-04 6:46 
GeneralRe: https authentification Pin
Heath Stewart9-Oct-04 7:37
protectorHeath Stewart9-Oct-04 7:37 
GeneralRe: https authentification Pin
Heath Stewart9-Oct-04 7:32
protectorHeath Stewart9-Oct-04 7:32 
Questionhow to learn .NET Pin
vcorn9-Oct-04 0:11
vcorn9-Oct-04 0:11 

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.