vba做一个登录窗体(UserForm),在图形编辑器里放置一个按钮,点击按钮后窗体(UserForm)弹出。在VBA运行时OK。但无法运行在 Runtime环境里。网上找一些资料,特别是“WinCC V7.4 Scripting VBS, ANSI-C, VBA-英文版的,学习脚本强烈推荐”里面第1709页 Event Handling 下介绍“
The events occur only during configuring in the Graphics Designer and are not available in Runtime. These events must not be confused with the events (e.g. mouse click, property change) occurring on graphic objects and pictures
”。有写过这方面的,有经验的路过发布一下。