记录
来源:互联网 发布:手机淘宝查看订单 编辑:程序博客网 时间:2024/04/30 22:04
public void AddControlsDelegate(DTE2 dte)
{
Project prj = (Project)((Array)dte.ActiveSolutionProjects).GetValue(0);
ProjectItem item = prj.ProjectItems.Item("Form1.cs") as ProjectItem;
Window itemDesigner = item.Open(Constants.vsViewKindDesigner);
itemDesigner.Activate();
IDesignerHost host = itemDesigner.Object as IDesignerHost;
IContainer ic = host.Container;
(ic.Components["textBox1"] as System.Windows.Forms.TextBox).Size = new Size(200, 21);
foreach (IComponent cp in ic.Components)
{
if (cp is System.Windows.Forms.Button)
{
(cp as System.Windows.Forms.Button).Text = "aa";
}
}
}
{
Project prj = (Project)((Array)dte.ActiveSolutionProjects).GetValue(0);
ProjectItem item = prj.ProjectItems.Item("Form1.cs") as ProjectItem;
Window itemDesigner = item.Open(Constants.vsViewKindDesigner);
itemDesigner.Activate();
IDesignerHost host = itemDesigner.Object as IDesignerHost;
IContainer ic = host.Container;
(ic.Components["textBox1"] as System.Windows.Forms.TextBox).Size = new Size(200, 21);
foreach (IComponent cp in ic.Components)
{
if (cp is System.Windows.Forms.Button)
{
(cp as System.Windows.Forms.Button).Text = "aa";
}
}
}
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- 记录
- _stdcall与_cdecl的区别
- 要成功先发疯
- 上古卷轴5
- Android开发RSS阅读器
- 菜鸟也能玩的溢出漏洞Fuzzing发掘
- 记录
- 测试工具与自动化测试的展望
- 如何为Eclipse安装主题(Color Theme)
- 在openSUSE Linux下升级firefox的方法
- uva 11481 Arrange the Numbers
- 是否可以从VHD启动操作系统呢?
- Oracle 10g 在 HP-UX 上安装详解
- 关于HttpServer的time-wait
- Hadoop Shell Command