表单滚动条,数据网格视图和面板 [英] scrollbar of form ,datagridview and panel

查看:93
本文介绍了表单滚动条,数据网格视图和面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..



我在.net c#中做Windows应用程序。我们可以在运行应用程序表单的滚动条工作正常后将滚动条添加到gridview ...但是当我们使用datagridview的滚动条时,我们无法使用表单的滚动条。在同一表格中丢失数据网格控件的焦点后,我需要做什么才能使用表单滚动条?



谢谢...

解决方案

只需使用另一个控件点击事件并将焦点设置到面板或表单上的另一个控件,你将从gridview中出来,你的滚动条形式在滚动鼠标上工作而不是gridview滚动条。 / BLOCKQUOTE>

hi..

i m doing windows application in .net c#. we can add scrollbar to gridview... after running application form's scrollbar work fine,but when we use scrollbar of datagridview we cant able to use scrollbar of form. what i have to do for using scrollbar of form after lost focuse of datagridview control on same form?

thank you...

解决方案

just make use of another control click event and set focus to another control on panel or form u will be came out from the gridview and u r scroll bar of form get worked rather gridview scrollbar on scrolling mouse.


这篇关于表单滚动条,数据网格视图和面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆