本文整理汇总了C#中TextBox.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# TextBox.Hide方法的具体用法?C# TextBox.Hide怎么用?C# TextBox.Hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextBox
的用法示例。
在下文中一共展示了TextBox.Hide方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: kitMapReport
public kitMapReport(string name)
: base(name)
{
enabled = true;
base.BackColor = Color.Transparent;
lstMaps = new ListBox("lstMaps");
lstMaps.Location = new Point(5, 5);
lstMaps.MultiSelect = false;
lstMaps.Height = 300;
for (int i = 0; i < 10; i++) {
ListBoxTextItem lbiMaps = new ListBoxTextItem(Graphics.FontManager.LoadFont("tahoma", 10), "");//(i + 1) + ": " + MapName);
lstMaps.Items.Add(lbiMaps);
}
vsbMaps = new VScrollBar("vsbMaps");
vsbMaps.ValueChanged += new EventHandler<ValueChangedEventArgs>(vsbMaps_ValueChanged);
vsbMaps.Maximum = 0;
btnLoadMapNames = new Button("btnLoadMapNames");
btnLoadMapNames.Size = new Size(100, 30);
btnLoadMapNames.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 12);
btnLoadMapNames.Text = "Load Maps";
Skins.SkinManager.LoadButtonGui(btnLoadMapNames);
btnLoadMapNames.Click += new EventHandler<MouseButtonEventArgs>(btnLoadMapNames_Click);
lblFindMap = new Label("lblFindMap");
lblFindMap.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 12);
lblFindMap.AutoSize = true;
lblFindMap.Text = "Search for maps";
lblFindMap.ForeColor = Color.WhiteSmoke;
lblFindMap.Hide();
txtFindMap = new TextBox("txtFindMap");
txtFindMap.KeyDown += new EventHandler<SdlDotNet.Input.KeyboardEventArgs>(txtFindMap_KeyDown);
txtFindMap.Hide();
lstFindResults = new ListBox("lstFindResults");
lstFindResults.MultiSelect = false;
lstFindResults.Hide();
this.AddWidget(lstMaps);
this.AddWidget(vsbMaps);
this.AddWidget(btnLoadMapNames);
this.AddWidget(lblFindMap);
this.AddWidget(txtFindMap);
this.AddWidget(lstFindResults);
}