- AdvMessageBox dient zum Erzeugen einer eigenen MessageBox. Der MessageBox kann ein eigenes Icon übergeben werden. Die Anzahl der Buttons kann zwischen 1 und 4 geändert werden. Die Standard-Buttons lassen sich benutzerdefiniert beschriften
145 lines
6.5 KiB
C#
145 lines
6.5 KiB
C#
namespace Test_AdvMessageBox
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// Erforderliche Designervariable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Verwendete Ressourcen bereinigen.
|
|
/// </summary>
|
|
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Vom Windows Form-Designer generierter Code
|
|
|
|
/// <summary>
|
|
/// Erforderliche Methode für die Designerunterstützung.
|
|
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.buttonTest2 = new System.Windows.Forms.Button();
|
|
this.groupBoxProgramInfo = new System.Windows.Forms.GroupBox();
|
|
this.labelProgramInfo = new System.Windows.Forms.Label();
|
|
this.groupBoxDLLInfo = new System.Windows.Forms.GroupBox();
|
|
this.labelDLLInfo = new System.Windows.Forms.Label();
|
|
this.buttonTest1 = new System.Windows.Forms.Button();
|
|
this.labelResult = new System.Windows.Forms.Label();
|
|
this.groupBoxProgramInfo.SuspendLayout();
|
|
this.groupBoxDLLInfo.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// buttonTest2
|
|
//
|
|
this.buttonTest2.Location = new System.Drawing.Point(12, 287);
|
|
this.buttonTest2.Name = "buttonTest2";
|
|
this.buttonTest2.Size = new System.Drawing.Size(776, 23);
|
|
this.buttonTest2.TabIndex = 1;
|
|
this.buttonTest2.Text = "MessageBox with custommer icon and Yes-All-No-Cancel Buttons";
|
|
this.buttonTest2.UseVisualStyleBackColor = true;
|
|
this.buttonTest2.Click += new System.EventHandler(this.buttonTest2_Click);
|
|
//
|
|
// groupBoxProgramInfo
|
|
//
|
|
this.groupBoxProgramInfo.Controls.Add(this.labelProgramInfo);
|
|
this.groupBoxProgramInfo.Location = new System.Drawing.Point(12, 372);
|
|
this.groupBoxProgramInfo.Name = "groupBoxProgramInfo";
|
|
this.groupBoxProgramInfo.Size = new System.Drawing.Size(385, 66);
|
|
this.groupBoxProgramInfo.TabIndex = 11;
|
|
this.groupBoxProgramInfo.TabStop = false;
|
|
this.groupBoxProgramInfo.Text = "Programm Information";
|
|
//
|
|
// labelProgramInfo
|
|
//
|
|
this.labelProgramInfo.AutoSize = true;
|
|
this.labelProgramInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
this.labelProgramInfo.Location = new System.Drawing.Point(7, 20);
|
|
this.labelProgramInfo.Name = "labelProgramInfo";
|
|
this.labelProgramInfo.Size = new System.Drawing.Size(16, 13);
|
|
this.labelProgramInfo.TabIndex = 0;
|
|
this.labelProgramInfo.Text = "...";
|
|
//
|
|
// groupBoxDLLInfo
|
|
//
|
|
this.groupBoxDLLInfo.Controls.Add(this.labelDLLInfo);
|
|
this.groupBoxDLLInfo.Location = new System.Drawing.Point(403, 372);
|
|
this.groupBoxDLLInfo.Name = "groupBoxDLLInfo";
|
|
this.groupBoxDLLInfo.Size = new System.Drawing.Size(385, 66);
|
|
this.groupBoxDLLInfo.TabIndex = 12;
|
|
this.groupBoxDLLInfo.TabStop = false;
|
|
this.groupBoxDLLInfo.Text = "DLL Information";
|
|
//
|
|
// labelDLLInfo
|
|
//
|
|
this.labelDLLInfo.AutoSize = true;
|
|
this.labelDLLInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
this.labelDLLInfo.Location = new System.Drawing.Point(7, 20);
|
|
this.labelDLLInfo.Name = "labelDLLInfo";
|
|
this.labelDLLInfo.Size = new System.Drawing.Size(16, 13);
|
|
this.labelDLLInfo.TabIndex = 0;
|
|
this.labelDLLInfo.Text = "...";
|
|
//
|
|
// buttonTest1
|
|
//
|
|
this.buttonTest1.Location = new System.Drawing.Point(12, 258);
|
|
this.buttonTest1.Name = "buttonTest1";
|
|
this.buttonTest1.Size = new System.Drawing.Size(776, 23);
|
|
this.buttonTest1.TabIndex = 0;
|
|
this.buttonTest1.Text = "MessageBox with customer icon";
|
|
this.buttonTest1.UseVisualStyleBackColor = true;
|
|
this.buttonTest1.Click += new System.EventHandler(this.buttonTest1_Click);
|
|
//
|
|
// labelResult
|
|
//
|
|
this.labelResult.AutoSize = true;
|
|
this.labelResult.Location = new System.Drawing.Point(12, 13);
|
|
this.labelResult.Name = "labelResult";
|
|
this.labelResult.Size = new System.Drawing.Size(16, 13);
|
|
this.labelResult.TabIndex = 14;
|
|
this.labelResult.Text = "...";
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
|
this.Controls.Add(this.labelResult);
|
|
this.Controls.Add(this.buttonTest1);
|
|
this.Controls.Add(this.groupBoxProgramInfo);
|
|
this.Controls.Add(this.groupBoxDLLInfo);
|
|
this.Controls.Add(this.buttonTest2);
|
|
this.Name = "Form1";
|
|
this.Text = "Test_InfoBox";
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
this.groupBoxProgramInfo.ResumeLayout(false);
|
|
this.groupBoxProgramInfo.PerformLayout();
|
|
this.groupBoxDLLInfo.ResumeLayout(false);
|
|
this.groupBoxDLLInfo.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button buttonTest2;
|
|
private System.Windows.Forms.GroupBox groupBoxProgramInfo;
|
|
private System.Windows.Forms.Label labelProgramInfo;
|
|
private System.Windows.Forms.GroupBox groupBoxDLLInfo;
|
|
private System.Windows.Forms.Label labelDLLInfo;
|
|
private System.Windows.Forms.Button buttonTest1;
|
|
private System.Windows.Forms.Label labelResult;
|
|
}
|
|
}
|
|
|