Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 CheckTargetPath = 0 来验证文本框事件中输入的路径。如果输入的路径无效,它不会进入下一个对话框。但我想在同一个对话框或另一个对话框的另一个文本框中显示错误消息。请指教。
复制 SetupError 对话框,让它看起来不错。
在“下一步”按钮的行为部分:
CheckTargetPath=0
CheckTargetPath<>0
这样,用户将被困在该对话框中,直到您的操作返回 0。
不要忘记涵盖无人值守模式。