使用者介面应用程序中的一些常见事件范例,像是利用使用者动作(例如按一下按钮)执行程序码区段。
Some common examples of events are found in user interface applications where a user action such as clicking a button causes a segment of code to execute.
事件处理常式是程序码中的程序,它会决定当事件发生时所要执行的动作,例如,当使用者按一下按钮时,或是当讯息伫列收到讯息时。
An event handler is a procedure in your code that determines what actions are performed when an event occurs, such as when the user clicks a button or a message queue receives a message.
设定自订动作的属性或使用自订程序码填入新项目的栏位。
Set the properties of a custom action or use custom code to populate the fields of the new item.
接著您必须撰写程式码,在您有兴趣的动作发生时将项目记录至记录档中。
You must then write code to record entries to the log whenever an action you're interested in occurs.
合并模组可以传递共用元件,而自订动作则会在安装结束时执行程序码,以执行无法在安装期间处理的动作。
Merge modules can deliver Shared components, and custom actions run code at the end of an installation to perform actions that cannot be handled during installation.
合并模组可以传递共用元件,而自订动作则会在安装结束时执行程序码,以执行无法在安装期间处理的动作。
Merge modules can deliver Shared components, and custom actions run code at the end of an installation to perform actions that cannot be handled during installation.
应用推荐