请帮个忙:
用C#,我想在timeer_click(...)事件调用onpaint(....)画图事件?
用C#,我想在timeer_click(...)事件调用onpaint(....)画图事件?
解决方案 »
- 请问 DataGridView的 VirtualMode 有什么作用
- WinForm 用代码添加的控件,如何捕获它的事件
- axWebBrowser1 打开word文件时 重名文件不提示 应该怎样设置?
- 急!!!C#窗体中怎样生成显示一个树的形状???
- 验证DataGridView单元格中的数据,用DataValidating事件好,还是用DataError事件呢?这两者有什么区别吗?
- 在form_Load事件中进行某些判断,通不过则不加载窗体。能否做到?
- 如何采用HTTP POST方式,给对方SP发送数据
- 如何在Html中的JavaScrip代码中对C#代码中定义的变量赋值?紧急
- 作64位程序和32位程序有什么不同.应该注意什么?
- Dev DataControl控件里的advBandedGridView 如何纵向合并相同单元格?
- 关于C#中的委托的问题,高手进,低手勿扰 ------------------ 100分求解
- combobox绑定问题
onPaint(this,null);
}
private voidobject sender, EventArgs e)
{
if (this.imageList1!= null && this.imageList1.Images.Count > 0)
{
index = nCurrentindex % this.imageList1.Images.Count;
nCurrentindex++;
if (nCurrentindex > this.imageList1.Images.Count * 10)
{
nCurrentindex = 0;
}
this.Mybutton_Paint(sender,e);
}
}
private void Mybutton_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
Image img = imageList1.Images[index];
g.DrawImage(img, 0, 0,32,32);
}