Monday, January 31, 2005
Sunday, January 30, 2005
Friday, January 28, 2005
Thursday, January 27, 2005
Wednesday, January 26, 2005
Tuesday, January 25, 2005
VBForums.com - C# - Clear a container of controls quickly.
VBForums.com - C# - Clear a container of controls quickly.: "public void ClearControlValues(System.Windows.Forms.Control Container)
{
try
{
foreach(Control ctrl in Container.Controls)
{
if(ctrl.GetType() == typeof(TextBox))
((TextBox)ctrl).Text = '';
if(ctrl.GetType() == typeof(ComboBox))
((ComboBox)ctrl).SelectedIndex = -1;
if(ctrl.GetType() == typeof(CheckBox))
((CheckBox)ctrl).Checked = false;
if(ctrl.GetType() == typeof(Label))
((Label)ctrl).Text = '';
if(ctrl.GetType() == typeof(DateTimePicker))
((DateTimePicker)ctrl).Text = '';
if(ctrl.Controls.Count>0)
ClearControlValues(ctrl);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}"
{
try
{
foreach(Control ctrl in Container.Controls)
{
if(ctrl.GetType() == typeof(TextBox))
((TextBox)ctrl).Text = '';
if(ctrl.GetType() == typeof(ComboBox))
((ComboBox)ctrl).SelectedIndex = -1;
if(ctrl.GetType() == typeof(CheckBox))
((CheckBox)ctrl).Checked = false;
if(ctrl.GetType() == typeof(Label))
((Label)ctrl).Text = '';
if(ctrl.GetType() == typeof(DateTimePicker))
((DateTimePicker)ctrl).Text = '';
if(ctrl.Controls.Count>0)
ClearControlValues(ctrl);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}"
Monday, January 24, 2005
Sunday, January 23, 2005
Saturday, January 22, 2005
Friday, January 21, 2005
Creating a languages table for SQL Server
www.richard-quinn.com: "Creating a languages table for SQL Server "
Thursday, January 20, 2005
Wednesday, January 19, 2005
Tuesday, January 18, 2005
Saturday, January 15, 2005
Friday, January 14, 2005
Thursday, January 13, 2005
Wednesday, January 12, 2005
Tuesday, January 11, 2005
Monday, January 10, 2005
Sunday, January 09, 2005
Saturday, January 08, 2005
Thursday, January 06, 2005
Wednesday, January 05, 2005
Tuesday, January 04, 2005
Monday, January 03, 2005
Subscribe to:
Posts (Atom)