想做一个控件,在button的右上角;左上角;中间各有一个字符串对应text1,text2,text3属性,求高人解答,先行谢过
解决方案 »
- 在windForm里面的WindsPlayer怎么控制只播放伴奏?不播放唱的
- tcp服务器的问题,这个问题是偶尔发生的,使得系统很不稳定,求解决
- 在.NET中如何为一个Field增加Attribute?
- C# winform中如何判断鼠标静止状态?
- C#网页提示"非法访问"
- 为什么.net网站在浏览的时候总出现浏览器错误啊
- 水晶报表中的printbutton的事件
- 关于自定义控件事件
- ZXing.net无法解析某些二维码图片
- 看看问题出在哪?
- 使用過fast reports studio 的朋友進來看看。
- 顶者有分, 关于用Graphics画图的问题, 我重新画的时候,怎么还是在原来的图上画啊,
public XButton()
{
InitializeComponent();
} protected override void OnPaint(PaintEventArgs pevent) {
base.OnPaint(pevent);
pevent.Graphics.DrawString("hello", new Font("", 12, FontStyle.Bold), Brushes.Black, new PointF(pevent.ClipRectangle.Left, pevent.ClipRectangle.Top));
pevent.Graphics.DrawString("world", new Font("", 12, FontStyle.Bold), Brushes.Black, new PointF(pevent.ClipRectangle.Left, pevent.ClipRectangle.Bottom-30));
pevent.Graphics.DrawString("haha", new Font("", 12, FontStyle.Bold), Brushes.Black, new PointF(pevent.ClipRectangle.Right-80, pevent.ClipRectangle.Top));
pevent.Graphics.DrawString("thankyou", new Font("", 12, FontStyle.Bold), Brushes.Black, new PointF(pevent.ClipRectangle.Right-80, pevent.ClipRectangle.Bottom - 30)); }
}