禁用双击MDI标题栏

编程入门 行业动态 更新时间:2024-10-28 04:23:04
本文介绍了禁用双击MDI标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的窗口应用程序的mdi形式有不可见的max按钮, 现在,请帮助防止双击MDI表单的标题栏.

Hi, I have invisible max button of mdi form of my window application, Now please help to Prevent double click on title bar of MDI form.

推荐答案

请尝试一下此副本并将其粘贴到MDI内 在顶部声明 TRY this Just Copy and Paste it inside your MDI Declare at the Top Private m_ChildFormNumber As Integer Public Const WM_NCLBUTTONDBLCLK As Integer = &HA3

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) If m.Msg = WM_NCLBUTTONDBLCLK Then Return MyBase.WndProc(m) End Sub

但是 如果将窗体的MaximizeBox属性设置为False,则不仅会禁用按钮的单击,而且还会忽略标题栏的双击.

BUT If you set the form''s MaximizeBox property to False, it not only disables the clicking of the button but it also ignores the double clicking of the title bar too.

更多推荐

禁用双击MDI标题栏

本文发布于:2023-11-10 01:25:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573981.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:双击   标题栏   MDI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!