久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='9SqIk'><tr id='9SqIk'><dt id='9SqIk'><q id='9SqIk'><span id='9SqIk'><b id='9SqIk'><form id='9SqIk'><ins id='9SqIk'></ins><ul id='9SqIk'></ul><sub id='9SqIk'></sub></form><legend id='9SqIk'></legend><bdo id='9SqIk'><pre id='9SqIk'><center id='9SqIk'></center></pre></bdo></b><th id='9SqIk'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9SqIk'><tfoot id='9SqIk'></tfoot><dl id='9SqIk'><fieldset id='9SqIk'></fieldset></dl></div>

<small id='9SqIk'></small><noframes id='9SqIk'>

    • <bdo id='9SqIk'></bdo><ul id='9SqIk'></ul>

        <tfoot id='9SqIk'></tfoot>

        <legend id='9SqIk'><style id='9SqIk'><dir id='9SqIk'><q id='9SqIk'></q></dir></style></legend>
      1. 如何識別控件的可見性是否被用戶更改?

        How to identify whether visibility of the control is changed by user or not?(如何識別控件的可見性是否被用戶更改?)
          <tbody id='kco5R'></tbody>

      2. <small id='kco5R'></small><noframes id='kco5R'>

      3. <i id='kco5R'><tr id='kco5R'><dt id='kco5R'><q id='kco5R'><span id='kco5R'><b id='kco5R'><form id='kco5R'><ins id='kco5R'></ins><ul id='kco5R'></ul><sub id='kco5R'></sub></form><legend id='kco5R'></legend><bdo id='kco5R'><pre id='kco5R'><center id='kco5R'></center></pre></bdo></b><th id='kco5R'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kco5R'><tfoot id='kco5R'></tfoot><dl id='kco5R'><fieldset id='kco5R'></fieldset></dl></div>

          <bdo id='kco5R'></bdo><ul id='kco5R'></ul>
          • <tfoot id='kco5R'></tfoot>
          • <legend id='kco5R'><style id='kco5R'><dir id='kco5R'><q id='kco5R'></q></dir></style></legend>

                  本文介紹了如何識別控件的可見性是否被用戶更改?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我的用戶控件繼承了 System.Windows.Forms.Control 類.以下鏈接描述了控件的可見"屬性控制.可見

                  My usercontrol inherits System.Windows.Forms.Control class. The following link describes the "Visible" property of control Control.Visible

                  根據上面的鏈接,如果控件存在于非活動選項卡中,那么即使我們沒有以編程方式設置 Control.Visible 也會返回 false

                  As per the above link, if control is present in inactive tab, then Control.Visible will return false even though we did not set it programmatically

                  問題:如何確定可見性是否被用戶或其他控件禁用?

                  Question: How do I identify whether visibility was disabled by user or other controls?

                  注意:我嘗試覆蓋 ContorlVisible 屬性,但它不可覆蓋.

                  Note: I tried overriding the Visible property of Contorl but it's not overridable.

                  說明

                  如果我的控件存在于未選擇的選項卡中,則 Control.Visible 返回 false.如果用戶想在 Bitmap 或其他東西中繪制控件(導出),我還需要確定子控件的可見性.由于我的控件不可見,因此沒有可靠的方法來確定子控件的可見性

                  If my control is present in unselected tab, then Control.Visible returns false. If the user wants to draw the control (export) in a Bitmap or something else, I need to determine the visibility of child controls too. Since my control is not visible, there is no reliable way available to determine the visibility of child controls

                  推薦答案

                  windows 窗體中的所有控件在內部保持其狀態.可見性也是他們保持狀態的事情之一.因為它有助于確定控件的可見性發生更改的原因.

                  All controls in windows forms internally maintain their state. Visibility is also one of the things they maintain in state. Because it helps to identify why visibility of the control was changed.

                  Control.Visible 如果您的上方有一個控件,則將返回 false控件或控件的父級被隱藏.但可見的價值只有當用戶將其設置為 false 時,state 中的屬性才會為 false.

                  Control.Visible will return false if there is a control above your control or parent of your control is hidden. But value of Visible property in state will be false only if user set it to false.

                  代碼:

                          //Method to ensure the visibility of a control
                          public bool DetermineVisibility(Control control)
                          {
                              //Avoid reflection if control is visible
                              if (control.Visible)
                                  return true;
                  
                              //Find non-public GetState method of control using reflection
                              System.Reflection.MethodInfo GetStateMethod = control.GetType().GetMethod("GetState", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
                  
                              //return control's visibility if GetState method not found
                              if (GetStateMethod != null)     
                                  //return visibility from the state maintained for control
                                  return (bool)(GetStateMethod.Invoke(control, new object[] { 2 }));
                              return false;
                          }
                  

                  這篇關于如何識別控件的可見性是否被用戶更改?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                    <bdo id='BTIC2'></bdo><ul id='BTIC2'></ul>
                    <tfoot id='BTIC2'></tfoot>

                        <tbody id='BTIC2'></tbody>

                        <i id='BTIC2'><tr id='BTIC2'><dt id='BTIC2'><q id='BTIC2'><span id='BTIC2'><b id='BTIC2'><form id='BTIC2'><ins id='BTIC2'></ins><ul id='BTIC2'></ul><sub id='BTIC2'></sub></form><legend id='BTIC2'></legend><bdo id='BTIC2'><pre id='BTIC2'><center id='BTIC2'></center></pre></bdo></b><th id='BTIC2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BTIC2'><tfoot id='BTIC2'></tfoot><dl id='BTIC2'><fieldset id='BTIC2'></fieldset></dl></div>
                        <legend id='BTIC2'><style id='BTIC2'><dir id='BTIC2'><q id='BTIC2'></q></dir></style></legend>

                          <small id='BTIC2'></small><noframes id='BTIC2'>

                          1. 主站蜘蛛池模板: 99福利 | 亚洲精品日日夜夜 | 亚洲乱码一区二区三区在线观看 | 日韩在线观看精品 | 一区二区精品 | 欧美精品 在线观看 | 欧美在线视频一区 | 日韩在线国产 | 午夜免费看 | 在线观看中文字幕av | 亚洲精品一区中文字幕 | 欧美一区二区三区在线观看视频 | 欧美三级电影在线播放 | 精品欧美乱码久久久久久 | 亚洲欧美日韩在线不卡 | 日日夜精品视频 | 国产一区二区精 | 北条麻妃一区二区三区在线观看 | 热久久久 | 国产不卡在线观看 | 亚洲成a人片 | 日韩中文字幕久久 | 1区2区视频 | 国产中文字幕网 | 午夜精品一区二区三区三上悠亚 | 国产成人99久久亚洲综合精品 | 欧美性网 | 男女黄网站 | 午夜影院在线免费观看视频 | 亚洲国产精品成人无久久精品 | 欧美精品一区二区免费 | 我要看一级片 | 亚洲色图综合 | 欧美精品一区二区三区在线 | 黄色片av| 中文字幕亚洲精品 | 国产在线观看不卡一区二区三区 | 在线看黄免费 | 亚洲狠狠爱 | 看片91| 亚洲精品www久久久久久广东 |