Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCAD > 70-316 : question on Windows forms event

Reply
Thread Tools

70-316 : question on Windows forms event

 
 
TalkBiz
Guest
Posts: n/a
 
      07-01-2005
You want to design code that will run after a form loses focus to another
form. To which event should the code be added ?
a). Terminate
b). LostFocus
c). Deactivate
d). Unload

I went to MSDN and found the following :

- LostFocus (inherited from Control) : Occurs when the control loses focus.

- Deactivate : Occurs when the form loses focus and is not the active form.
You can use this event to perform tasks such as updating another window in
your application with data from the deactivated form.

- unload and Terminate methods do not exist for the Form class

I think the answer to the question is c) deactivate

Everybody agree ?

thanx

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading windows event file like event viewer from windows/system32/config/AppEvent.evt veeru Java 1 07-18-2007 01:46 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
How to determine if context is Windows Forms or Web Forms Arsen V. ASP .Net 7 08-06-2005 09:24 AM
embedded windows forms into web forms for control =?Utf-8?B?ZGF2aWQ=?= ASP .Net 2 04-10-2005 01:07 PM
Web Forms VS Windows Forms Brendan Miller ASP .Net 2 08-11-2003 09:05 PM



Advertisments