Gr_ay 2014-11-17 07:06 采纳率: 100%
浏览 2118
已采纳

asp textbox 是有焦点,点击button按钮提交, textbox 却不不执行失去焦点事件

图片说明
正确流程是:当所在单位的文本框失去焦点时会查到该单位的id然后后台获取这个id,
但现在有这样一种情况,文本框还没有失去焦点,直接去点击注册,这样会导致id获取不到,在后台进行数据转换时就会出错了

  • 写回答

7条回答

  • 宝_爸 2014-11-18 02:03
    关注

    在父窗口中订阅 Form.MdiChildActivate Event。

    Occurs when a multiple-document interface (MDI) child form is activated or closed within an MDI application.

    You can use this event to perform tasks such as updating the contents of the MDI child form and changing the menu options available in the MDI parent form based on the status of the MDI child form that is activated.

    以上来自msdn:
    http://msdn.microsoft.com/en-us/library/system.windows.forms.form.mdichildactivate.aspx

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(6条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?