最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
NeoSwiff的图像按钮
时间:2022-07-02 11:28:40 编辑:袖梨 来源:一聚教程网
最近研究了一下NeoSwiff的SDK.能写出的C#语法编译器,太强了!! 他的独立IDE安装文件只有3m.
怀疑是不是有公开的C# 语法分析器......
作者对.net framework很熟悉.虽然它的GDI+与.net略有不同.
我用一个ImageButton扩展System.Windows.Forms.Button控件小试了一下
//ImageButton.ccs
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Component
{
public class ImageButton : Button
{
private Image image = null;
private String imagename = "";
public ImageButton()
{
InitializeComponent();
}
private void InitializeComponent()
{
this.Size = new Size(25,25);
}
public String ImageName
{
get { return imagename;}
set { imagename = value;}
}
protected override void OnPaint(PaintEventArgs e)
{
怀疑是不是有公开的C# 语法分析器......
作者对.net framework很熟悉.虽然它的GDI+与.net略有不同.
我用一个ImageButton扩展System.Windows.Forms.Button控件小试了一下
//ImageButton.ccs
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Component
{
public class ImageButton : Button
{
private Image image = null;
private String imagename = "";
public ImageButton()
{
InitializeComponent();
}
private void InitializeComponent()
{
this.Size = new Size(25,25);
}
public String ImageName
{
get { return imagename;}
set { imagename = value;}
}
protected override void OnPaint(PaintEventArgs e)
{
相关文章
- 艾尔登法环黑夜君临追踪者玩法攻略分享 10-06
- 幻想生活i毕业武器装备推荐选择分享 10-06
- 剑星计划净化地球支线完成方法分享 10-06
- 匹诺曹的谎言序曲DLC全武器获取方法 10-06
- 沙丘觉醒霍尔茨曼执行器获取方法分享 10-06
- 幻想生活i全部坐骑获取方法介绍说明 10-06