窗体传值,子窗体,父窗体,反射,reflection,windows,组策略,gpedit.msc,动态创建窗体,谢谢
2008-05-26 23:00
465 查看
大家好!
刚才快下班的时候我正在写一个winform的程序,界面是treeview+listview的联动,就好像windows的组策略的样子,在子窗体中修改策略的安全设置,在主窗体中刷新显示,见下图:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace WindowsApplication1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
public partial class frmPasswordLength : Form
public frmPasswordLength()
InitializeComponent();
button2.DialogResult = DialogResult.OK;
button1.DialogResult = DialogResult.Cancel;
}
public int PasswordLength
get set }
}
}
修改成功
大功告成,希望对大家有帮助,谢谢大家耐心看完我的教程。
刚才快下班的时候我正在写一个winform的程序,界面是treeview+listview的联动,就好像windows的组策略的样子,在子窗体中修改策略的安全设置,在主窗体中刷新显示,见下图:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace WindowsApplication1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
public partial class frmPasswordLength : Form
public frmPasswordLength()
InitializeComponent();
button2.DialogResult = DialogResult.OK;
button1.DialogResult = DialogResult.Cancel;
}
public int PasswordLength
get set }
}
}
修改成功
大功告成,希望对大家有帮助,谢谢大家耐心看完我的教程。
相关文章推荐
- .Net 中的反射(动态创建类型实例) - Part.4(转自http://www.tracefact.net/CLR-and-Framework/Reflection-Part4.aspx)
- 使用反射实现根据名称动态创建窗体的几种方法
- C#演练—Windows应用程序—在windows窗体上动态创建上下文菜单
- 动态创建菜单,menustrip,根据权限显示菜单,控制菜单可用,反射,给窗体传值,反射对象传值,public static Object CreateInstance ( Type type, pa
- C# 反射动态创建窗体
- 使用反射实现根据名称动态创建窗体的几种方法。
- 使用反射实现根据名称动态创建窗体的几种方法。
- C# 设置Windows 窗体的屏幕位置,动态创建的Form
- C# 反射动态创建窗体
- 做过:演练:在 Windows 窗体上创建动态上下文菜单
- 动态创建菜单,menustrip,根据权限显示菜单,控制菜单可用,反射,给窗体传值,反射对象传值,public static Object CreateInstance ( Type type, params Object[] args )
- [转载内容]动态创建菜单,menustrip,根据权限显示菜单,控制菜单可用,反射,给窗体传值,反射对象传值,public static Object CreateInstance ( Type type, params Object[] args )
- 动态创建菜单,menustrip,根据权限显示菜单,控制菜单可用,反射,给窗体传值,反射对象传值【转】
- C# 使用反射实现根据名称动态创建窗体的几种方法
- 通过反射创建动态代理对象(二)
- C#回顾 - 8.利用反射动态创建对象
- 利用泛型反射在运行时动态创建WCF客户端
- 反射学习:动态创建对象。
- [原创]Silverlight中动态数据验证和动态自动计算的Reflection反射实现
- windows下不规则窗体创建的几种方法