本文整理汇总了C#中TextBox.Show方法的典型用法代码示例。如果您正苦于以下问题:C# TextBox.Show方法的具体用法?C# TextBox.Show怎么用?C# TextBox.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextBox
的用法示例。
在下文中一共展示了TextBox.Show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SettingsPage_Load
public void SettingsPage_Load(object sender, EventArgs e)
{
windowSize = Util.getSizeOfSettingsPage();
BackColor = System.Drawing.Color.FromArgb(255, 255, 255);
sourceExtensionLabel = new Label();
sourceExtensionLabel.Text = "Source extension: ";
sourceExtensionLabel.Bounds = Util.getBoundsOfSourceExtensionLabel(Width, Height);
sourceExtensionLabel.Show();
sourceExtensionLabel.Visible = true;
Controls.Add(sourceExtensionLabel);
objectExtensionLabel = new Label();
objectExtensionLabel.Text = "Object extension: ";
objectExtensionLabel.Bounds = Util.getBoundsOfObjectExtensionLabel(Width, Height);
objectExtensionLabel.Show();
objectExtensionLabel.Visible = true;
Controls.Add(objectExtensionLabel);
sourceExtensionTextBox = new TextBox();
sourceExtensionTextBox.Text = ".cc";
sourceExtensionTextBox.Bounds = Util.getBoundsOfSourceExtensionTextBox(Width, Height);
sourceExtensionTextBox.Show();
sourceExtensionTextBox.Visible = true;
sourceExtensionTextBox.TextChanged += new System.EventHandler(SourceExtensionTextBox_TextChanged);
Controls.Add(sourceExtensionTextBox);
objectExtensionTextBox = new TextBox();
objectExtensionTextBox.Text = ".o";
objectExtensionTextBox.Bounds = Util.getBoundsOfObjectExtensionTextBox(Width, Height);
objectExtensionTextBox.Show();
objectExtensionTextBox.Visible = true;
objectExtensionTextBox.TextChanged += new System.EventHandler(ObjectExtensionTextBox_TextChanged);
Controls.Add(objectExtensionTextBox);
MinimumSize = windowSize;
Size = windowSize;
}
示例2: MakeMonitor_Load
public void MakeMonitor_Load(object sender, EventArgs e)
{
sourceExtension = ".cc";
objectExtension = ".o";
backgroundWorker = new System.ComponentModel.BackgroundWorker();
backgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(backgroundWorker_DoWork);
backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(backgroundWorker_RunWorkerCompleted);
fileSystemWatcher = new System.IO.FileSystemWatcher();
((System.ComponentModel.ISupportInitialize)(fileSystemWatcher)).BeginInit();
fileSystemWatcher.EnableRaisingEvents = true;
fileSystemWatcher.SynchronizingObject = this;
BackColor = System.Drawing.Color.FromArgb(255, 255, 255);
searchTextBox = new TextBox();
searchTextBox.Bounds = Util.getBoundsOfSearchTextBox(Width, Height);
searchTextBox.Show();
searchTextBox.Visible = true;
Controls.Add( searchTextBox );
searchTextBox.TextChanged += new System.EventHandler(SearchTextBox_TextChanged);
pathLabel = new Label();
pathLabel.Text = "Enter path above.";
pathLabel.Bounds = Util.getBoundsOfPathLabel(Width, Height);
pathLabel.Show();
pathLabel.Visible = true;
Controls.Add(pathLabel);
progressBar = new ProgressBar();
progressBar.Bounds = Util.getBoundsOfProgressBar(Width, Height);
progressBar.Margin = new Padding(0);
progressBar.BackColor = System.Drawing.Color.FromArgb(255, 255, 255);
progressBar.ForeColor = System.Drawing.Color.FromArgb(255, 255, 255);
progressBar.Show();
progressBar.Visible = true;
Controls.Add(progressBar);
percentageLabel = new Label();
percentageLabel.Text = "0%";
percentageLabel.Bounds = Util.getBoundsOfPercentageLabel(Width, Height);
percentageLabel.Show();
percentageLabel.Visible = true;
Controls.Add(percentageLabel);
statusLabel = new Label();
statusLabel.Text = "";
statusLabel.Bounds = Util.getBoundsOfStatusLabel(Width, Height);
statusLabel.ForeColor = System.Drawing.Color.FromArgb(0, 128, 0);
statusLabel.Visible = true;
statusLabel.Show();
Controls.Add(statusLabel);
errorLabel = new Label();
errorLabel.Text = "";
errorLabel.Bounds = Util.getBoundsOfErrorLabel(Width, Height);
errorLabel.ForeColor = System.Drawing.Color.FromName("Red");
errorLabel.Visible = true;
errorLabel.Show();
Controls.Add(errorLabel);
MinimumSize = Util.getMinimumSizeOfMainPage();
Size = Util.getSizeOfMainPage();
Menu = new MainMenu();
MenuItem settings = new MenuItem("&Settings");
settings.Click += new System.EventHandler(settings_Click);
Menu.MenuItems.Add(settings);
((System.ComponentModel.ISupportInitialize)(fileSystemWatcher)).EndInit();
}