| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 686 人关注过本帖
标题:vb.net DataGridView 滚动条拖放屏幕闪烁
只看楼主 加入收藏
shxlife
Rank: 1
来 自:绍兴
等 级:新手上路
帖 子:7
专家分:0
注 册:2021-9-14
结帖率:0
收藏
 问题点数:0 回复次数:1 
vb.net DataGridView 滚动条拖放屏幕闪烁
如何防止屏幕闪烁,请各位大侠提供代码
搜索更多相关主题的帖子: 拖放 闪烁 vb.net 滚动条 屏幕 
2022-04-18 11:48
shxlife
Rank: 1
来 自:绍兴
等 级:新手上路
帖 子:7
专家分:0
注 册:2021-9-14
收藏
得分:0 
    Dim cc As Integer
        Dim rr As Integer
        n_val = e.Value
        If Trim(o_val) <> Trim(n_val) Then
            '' MsgBox("数2据改变" & o_val & "--" & n_val)
            cc = DataGridView1.CurrentCell.ColumnIndex   '当前列号
            rr = DataGridView1.CurrentCell.RowIndex '当前行号
            DataGridView1.Rows(rr).Cells(cc).Style.BackColor = Color.Green  '改变颜色
            DataGridView1.Refresh()
        End If

其中上面代码中,  DataGridView1.Rows(rr).Cells(cc).Style.BackColor = Color.Green  '改变颜色 拿了,屏幕不会闪烁了

2022-06-01 22:34
快速回复:vb.net DataGridView 滚动条拖放屏幕闪烁
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017150 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved