摘要:
public partial class Frm_Main : Form { public Frm_Main() { InitializeComponent(); } private void timer1_Tick(object sender, EventArgs e) { this.Opacity += 0.1;//设置窗体的不透明级别 } }嘻嘻 爱生活 爱圆圆 阅读全文
摘要:
public partial class Frm_Main : Form { Bitmap bit;//声明位图对象 public Frm_Main() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { bit = new Bitmap("font.bmp");//从指定的图像初始化Bitmap类对象 bit.MakeTrans... 阅读全文
摘要:
public partial class Frm_Main : Form { public Frm_Main() { InitializeComponent(); } private void Frm_Main_Load(object sender, EventArgs e) { RegistryKey myReg1, myReg2;//声明注册表对象 myReg1 = Registry.CurrentUser;//获取当前用户注册表项 ... 阅读全文
摘要:
class Program { public float maxGongYueShu(int n1, int n2) { int temp = Math.Max(n1, n2);//求两个数的最大值 n2 = Math.Min(n1, n2);//求两个数中的最小值 n1 = temp;//记录临时值 while (n2 != 0) { n1 = n1 > n2 ? n1 : n2;//使n1中的数大于n2中的数 ... 阅读全文