Working with Forms The Form Events As objects,formscan perform - TopicsExpress



          

Working with Forms The Form Events As objects,formscan perform methods and respond toevents.TheResize eventof a form is occured whenever a form is resized, either by user interaction or through code. This allows you to perform actions such as moving or resizing controls on aform. TheActivate eventoccurs whenever aformbecomesactive form, theDeactivate eventoccurs when another form or application becomes active. Theseeventsare convenient for initializing or finalizing the formsbehaviour. OR For writing the code for any from use key combinationAlt+V+C. A forms events are shown below in the figure: For Writing code of a particular event just click on a particular event ,then the following code window will appear: Here for example you have clicked theMouseUp event. Using the unload Event: Theunload eventprocedure is used to verify that theformshould be unloaded.Theunload eventis occurred when: 1.TheFormis unloaded using theUnloadstatement. 2.Theformis closed by either clicking the Close command on the application menu or clicking the close button on application title bar. Commonly used Form Events: ActivateForm_Activate event is triggered when form becomes the active window. ClickForm_Click event is triggered when user clicks on form. DblClickForm_DblClick event is triggered when user double-clicks on form. LoadForm_Load event occurs when form is loaded.This is a good place to initialize variables and sets any run-time property
Posted on: Tue, 15 Oct 2013 02:02:08 +0000

Trending Topics



Recently Viewed Topics




© 2015