• (19) C ා WinForm custom control – dock form – hzhcontrols


    Official website http://www.hzhcontrols.com premise Has been in the industry for 7,8 years, has always wanted to do a set of beautiful custom controls, so there is a series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net_ winform_ custom_ control.git If you think the writing is OK, please click a star to support it Welcome to discuss: Penguins […]

  • The input component generated dynamically by Vue + iView can only get the focus problem once


    Use the iView framework of to trigger the function of automatic focus acquisition of input: But dynamically generated input components can only get focus once Upper codehtml <div v-for=”(info,index) in pageInfo.data” :key=”info.fid”> <span v-if=”currentIndex_file !== index” @click=”getcurFile(index)” >{{info.positionName}}</span> <Input v-show=”currentFile === index” @on-blur=”directModify(info.fid,index)” :ref=”‘file’+index”></Input> </div> js //Data value data() { return { this.currentIndex_file = null; […]

  • JS advanced – Case: verify whether the user input the mailbox or not


    Case: verify whether the user has entered a mailbox   title Please enter email address:* < span style = “background color:” f5f5f5; color: “008000;” ></span> < span style = “background color:” f5f5f5; color: “008000;” ></span> <span style=”background-color: #f5f5f5; color: #000000;”> document.getElementById(</span><span style=”background-color: #f5f5f5; color: #000000;”>”</span><span style=”background-color: #f5f5f5; color: #000000;”>email</span><span style=”background-color: #f5f5f5; color: #000000;”>”</span><span style=”background-color: #f5f5f5; […]

  • Winfrom get focus control


    [DllImport(“user32.dll”, CharSet = CharSet.Auto, CallingConvention = CallingConvention.Winapi)] internal static extern IntPtr GetFocus(); ///Get the control that currently has focus private Control GetFocusedControl() { Control focusedControl = null; IntPtr focusedHandle = GetFocus(); if (focusedHandle != IntPtr.Zero) focusedControl = Control.FromChildHandle(focusedHandle); return focusedControl; } View Code Original link: https://blog.csdn.net/alisa525/article/details/7402307  

  • How to pop up and fold up the keyboard of H5 mobile phone


    This article starts from hzzly’s blog Link in the original text: handling the pop-up of H5 mobile keyboard The front-end time is also to meet the needs of the project to start the journey of the H5 mobile terminal. Based on the current middle platform, two TOC mobile terminal projects have been expanded. The following […]

  • Solve that the element UI input input input box cannot be searched with carriage return


    Because using the Vue modifier to bind the keyboard event reports an error, I don’t know how to solve it So I came up with a magic solution 1. Bind input event, save the input content to local storage every time < El input placeholder = “search” V-model = “searchInput” @ input = “inputsearchinfo” clearable […]

  • When the input, select, and textarea of Apple mobile phone lose focus, the page will not return


    I am a brick, where to move!In mobile project development, we often encounter strange problems, which is normal. However, due to the differences between IOS and Android, adaptation problems often occur.In fact, when the input, select, and textarea of Apple’s mobile phone lose focus, the problem of page not returning to its place is common.Problem […]

  • The solution of setting focus display coordinate format of ZedGraph and displaying three coordinate numbers in winforn


    scene In winforn, set the properties of ZedGraph curve, coordinate axis and scale: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 Multiple Y axes of ZedGraph are implemented in WinForm (download with source code): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 ZedGraph setting display coordinate value zgc.IsShowCursorValues = true; But after refreshing the graph, there are three coordinate values of mouse focus     The solution is to […]

  • Cefsharp can’t input Chinese


    In cefsharp75, the Chinese input method of Sogou cannot be supported after using wpfiimekeyboardhandler support   One of the fixes: In the Chrome web browser, add the rewrite of focus event and modify the inputmethod Setisinputmethodenabled — whether Chinese can be entered Setisinputmethodsuspended — set ime off protected override void OnGotFocus(RoutedEventArgs e) { InputMethod.SetIsInputMethodEnabled(this, true); […]

  • How to set the focus of HTML elements


    Copy code The code is as follows: <body <form action=”” method=”post” name=”form1″ > <input type=”text” /> </form> </body> <script> function myfocus() { document.getElementById(‘id’).focus(); } </script>

  • Solve the problem that focus events cannot be triggered under iOS


    premise My idea is to let one input element lose focus after clicking on the event, and then another input element get focus. The code is as follows: $(‘#xd_content .tabcontent .nav’).on(‘click’, function () { $(‘#xd_content ‘).blur(); setTimeout(function () { $(‘#search .shop-search-ipt’).focus(); }, 400); }); It was found that Android had a stable keyboard, but IOS […]