Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146560 | Aug 8,2019 08:03 AM UTC | Aug 19,2019 09:50 AM UTC | WinForms | 5 |
![]() |
Tags: CommandBarController |
# 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;
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.