# Form1.cs
private void Form1_Load(object sender, System.EventArgs e)
{
//Reset the in-built height value.
foreach (FieldInfo fi in commandBarStandard.GetType().GetFields(BindingFlags.Instance | BindingFlags.NonPublic))
{
if (fi.Name.Contains("nCommandBarHt"))
{
fi.SetValue(commandBarStandard, 24);
break;
}
}
//Change the command bar height value
this.commandBarStandard.Height = 24;
}
|
# Form1.cs
private void Form1_Load(object sender, System.EventArgs e)
{
foreach (FieldInfo fi incommandBarStandard.GetType().GetFields(BindingFlags.Instance | BindingFlags.NonPublic))
{
if (fi.Name.Contains("nCommandBarHt"))
{
fi.SetValue(commandBarStandard, 24);
break;
}
}
//Change the command bar height value
this.commandBarStandard.Height = 24;
//Change the command bar controller height value.
this.commandBarStandard.Parent.Height = 26;
}
|