报错'cannot change visible in onshow or onhide'
问题描述: 关闭程序的时候需要修改modalresult值, 原来把加载的事件写在MailForm的onshow事件里总是报'cannot change visible in onshow or onhide'; 解决方法: 不要把事件写在onshow里面,改到oncreate事件里 ...