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

<tfoot id='aWNp6'></tfoot>

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

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

          <bdo id='aWNp6'></bdo><ul id='aWNp6'></ul>
        <legend id='aWNp6'><style id='aWNp6'><dir id='aWNp6'><q id='aWNp6'></q></dir></style></legend>

        TabControl 中的 C# Tab 切換

        C# Tab switching in TabControl(TabControl 中的 C# Tab 切換)

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

                • <tfoot id='DqfFk'></tfoot>
                    <tbody id='DqfFk'></tbody>
                  <legend id='DqfFk'><style id='DqfFk'><dir id='DqfFk'><q id='DqfFk'></q></dir></style></legend>
                • 本文介紹了TabControl 中的 C# Tab 切換的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我正面臨這樣的問題,我覺得很難克服.在 WinForms 中,我得到了一個(gè)帶有 n 個(gè) TabPages 的 TabControl.我想擴(kuò)展 Ctrl+Tab/Ctrl+Shift+Tab 切換.所以我寫了一些代碼,只要焦點(diǎn)在 TabControl 或 Form 上就可以正常工作.當(dāng)應(yīng)用程序焦點(diǎn)位于 TabPage 內(nèi)部時(shí)(例如,位于 TabPage 內(nèi)部的按鈕上),按下 Ctrl+Tab 時(shí),我的代碼將被忽略,并且 TabControl 會(huì)自行跳到 TabPage(避免我的代碼).

                  Iam facing such problem, which I find hard to overcome. In WinForms I got a TabControl with n TabPages. I want to extend the Ctrl+Tab / Ctrl+Shift+Tab switching. so I wrote some code which works fine as long as the focus is on TabControl or on the Form. When application focus is INSIDE of TabPage (for example on a button which is placed inside of TabPage), while pressing Ctrl+Tab, my code is ignored and TabControl skips to TabPage on his own (avoiding my code).

                  有人知道嗎?

                  推薦答案

                  您需要從 TabControl 派生并覆蓋 ProcessCmdKey,虛擬方法才能覆蓋 Ctrl-Tab 行為.

                  You need to derive from TabControl and override ProcessCmdKey, virtual method in order to override the Ctrl-Tab behavior.

                  例子:

                  public class ExtendedTabControl: TabControl
                  {
                      protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
                      {
                          if (keyData == (Keys.Control | Keys.Tab))
                          {
                              // Write custom logic here
                              return true;
                          }
                          if (keyData == (Keys.Control | Keys.Shift | Keys.Tab))
                          {
                              // Write custom logic here, for backward switching
                              return true;
                          }
                          return base.ProcessCmdKey(ref msg, keyData);
                      }
                  }
                  

                  這篇關(guān)于TabControl 中的 C# Tab 切換的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

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

                      <tfoot id='lBXmp'></tfoot>

                        <tbody id='lBXmp'></tbody>

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

                          1. 主站蜘蛛池模板: 国产一区二区三区免费观看在线 | 在线视频一区二区 | 日韩成人专区 | 一区二区av| 国产高清在线 | 成人国产在线观看 | 96国产精品久久久久aⅴ四区 | 免费国产一区 | 亚洲欧美日韩国产综合 | 求毛片 | 亚洲第一区国产精品 | 操网站| 色综合一区 | 夜夜草 | 最新中文字幕第一页视频 | 亚洲一区二区精品视频 | 欧美二区在线 | 久久精品欧美一区二区三区不卡 | 精品人伦一区二区三区蜜桃网站 | 久久精品屋 | 久久欧美精品 | 久久久久久一区 | 欧美日韩久久久 | 日韩中文字幕在线视频 | 久久久久久久一区二区三区 | 国内自拍偷拍 | 成人在线观看中文字幕 | 黄色免费在线观看网站 | 久草热视频 | 一二区成人影院电影网 | 国产精品明星裸体写真集 | 精品区| 日韩视频在线免费观看 | 欧美精品一区二区三区在线播放 | 视频在线一区二区 | 中文字幕精品一区二区三区精品 | 午夜影院在线观看视频 | 天堂精品 | 日本激情视频中文字幕 | 91不卡 | 亚洲成人精品一区二区 |