在线等。。。在C#中用到了MultiRow控件,在选中一个textBoxCell的时候怎样实现这种效果:Excel中选择一个区域,然后CTRL+C,所选择区域的外围边框好像动态的一闪一闪的效果 在C#中用到了MultiRow控件,在选中一个textBoxCell的时候怎样实现这种效果:Excel中选择一个区域,然后CTRL+C,所选择区域的外围边框好像动态的一闪一闪的效果 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 能用代码来控制textBoxCell这个控件来实现吗? 通过重设textBoxCell样式应该可以实现的 你怎么改的式样??你可以在KeyDown中监视下Ctrl+C然后调用Template.Cells.SetBorder方法参数就传你ActiveCell的Rang同时启动一个Timer让他不停的换一下,就会出现闪动的效果然后当你想改回来的时候停止Timer在调用Template.Cells.SetBorder方法修改回原来的样子 给你点代码参考下private BorderLineStyle style = BorderLineStyle.DashDot;void multiRowSheet1_KeyDown(object sender, KeyEventArgs e){ if (e.Control && e.KeyCode == Keys.C) { timer1.Enabled = true;//启动Timer }}private void timer1_Tick(object sender, EventArgs e){ if (style == BorderLineStyle.DashDot) { style = BorderLineStyle.DashDotDot; } else { style = BorderLineStyle.DashDot; } multiRowSheet1.ActiveBorder = new BorderLine(Color.Black, style);}两个Style来回切换就可以了 实现U盘只能往电脑拷入数据,不能从电脑拷出数据 求助:急急 子Form设置父Form焦点的问题 datagrid表头如何显示中文 请教:ashx怎么得到post的包体? Datagrid怎样显示数组数据? 求C#画弧线的方法 如何写这个 在C#中 如何 在from2 中取得 from1 的值? 关于免费数据库 一个关于dll的问题 C#线程入门请教
然后调用Template.Cells.SetBorder方法
参数就传你ActiveCell的Rang
同时启动一个Timer
让他不停的换一下,就会出现闪动的效果然后当你想改回来的时候停止Timer
在调用Template.Cells.SetBorder方法修改回原来的样子
{
if (e.Control && e.KeyCode == Keys.C)
{
timer1.Enabled = true;//启动Timer
}
}private void timer1_Tick(object sender, EventArgs e)
{
if (style == BorderLineStyle.DashDot)
{
style = BorderLineStyle.DashDotDot;
}
else
{
style = BorderLineStyle.DashDot;
} multiRowSheet1.ActiveBorder = new BorderLine(Color.Black, style);
}
两个Style来回切换就可以了