Keep an HTA window from resizing

不问归期 提交于 2020-07-03 03:07:07

问题


I have an HTA which I always want to have the same size. I've already kept the window from being maximized by using <hta:application maximizebutton="no" but I also want to keep it from being resised by dragging the mouse from the border of the window.


回答1:


Add this below:

<HTA:APPLICATION
    MAXIMIZEBUTTON="NO"
    SCROLL="NO"
    BORDER="DIALOG"
/>

Note - If you want to allow user to scroll, change SCROLL string from NO to YES




回答2:


Try like this :

<HTA:APPLICATION ID="sample"
    APPLICATIONNAME="sample"
    BORDER="dialog"
    MAXIMIZEBUTTON="no"
    SCROLLFLAT="yes"
    CAPTION="yes"
    SELECTION="no"
    INNERBORDER="no"
    ICON=""
    SCROLL="no"
    SHOWINTASKBAR="yes"
    SINGLEINSTANCE="yes"
    SYSMENU="yes"
    WINDOWSTATE="normal" />


来源:https://stackoverflow.com/questions/28659293/keep-an-hta-window-from-resizing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!