一个什么都没有的窗体BaseDialogTest partial class BaseDialogTest {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null; /// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
} #region Windows Form Designer generated code /// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.SuspendLayout();
//
// BaseDialogTest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(634, 448);
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Name = "BaseDialogTest";
this.Text = "BaseDialogTest";
this.ResumeLayout(false); } #endregion } public partial class BaseDialogTest : Form {
public BaseDialogTest() {
InitializeComponent();
this.Load += new EventHandler(BaseDialogTest_Load);
} void BaseDialogTest_Load(object sender, EventArgs e) {
this.Text = "";
}
}然后用ShowDialog方法显示,就显示不出来Using(BaseDialogTest dlg = new BaseDialogTest()){
dlg.ShowDialog();
}
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null; /// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
} #region Windows Form Designer generated code /// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
this.SuspendLayout();
//
// BaseDialogTest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(634, 448);
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Name = "BaseDialogTest";
this.Text = "BaseDialogTest";
this.ResumeLayout(false); } #endregion } public partial class BaseDialogTest : Form {
public BaseDialogTest() {
InitializeComponent();
this.Load += new EventHandler(BaseDialogTest_Load);
} void BaseDialogTest_Load(object sender, EventArgs e) {
this.Text = "";
}
}然后用ShowDialog方法显示,就显示不出来Using(BaseDialogTest dlg = new BaseDialogTest()){
dlg.ShowDialog();
}
解决方案 »
- C#控制台应用程序打印树状图
- 文本框第一次点击时全选文本?
- datagridview获取跨窗体传过来的dataset!!!!!!顶者有分
- 困扰了我一天,用C#调用Win32 API,如何向另外一个进程中的Treeview发送类似于Click或者Double Click的消息?
- 我该怎么办,问问一些过来人
- 如果在WebBrowser中写代码清空IE的cookie
- 如何利用TreeView動態生成樹狀結構?高分求教!
- WPF,这种数据绑定怎么写?
- 我在项目中引用了一COM,但为什么只有在这个COM注册之后才可以用?
- 请高手带带我吧
- 请问如何做一个class连接数据库,我只会用vb的,寻求c#的,有代码
- 十万火急!c#winform,水晶报表中的图表纵轴显示的值始终为1
dlg.ShowDialog();