change font size of ActiveX ListBox
Hi there!
I use a ActiveX-Element "Microsoft Forms 2.0 ListBox-Control" on my screen and add some entries to it. But unfortunately the fontsize is much too small.
How can I set the font size of the control? It doesn't matter if at runtime or design mode. I even could use a CD_ListBox instead of MS_ListBox.
This is my code so far:
C# Code:
zenOn.IElement zElementlstSorts = this.Project.DynPictures().Item("Sorts").Elements().Item("lstSorts");
Microsoft.Vbe.Interop.Forms.ListBox JobListBox = zElementlstSorts.AktiveX() as Microsoft.Vbe.Interop.Forms.ListBox;
JobListBox.Clear();
List jobList = GetJobList();
object[] jobIDs = new object[jobList.Count];
object defaultParameter = null;
for (int incID = 0; incID < jobList.Count; incID++)
{
jobIDs[incID] = jobList[incID].id;
JobListBox.AddItem(ref jobIDs[incID], ref defaultParameter);
}
can anyone please help?
This is a migrated post! Originally posted on 05.03.2013 by user professor_hubert_farnsworth. Please be aware that information can be outdated.