Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i want to know about how to fill combo box on form load with font size like wordpad font size
Posted

1 solution

Hi Sachin,

Font sizes can be any double value. So you will have to create the values manually by just adding the defaults to your combobox in the form load:

C#
yourComboBox.Items.Add(8.0);
yourComboBox.Items.Add(9.0);
yourComboBox.Items.Add(10.0);
yourComboBox.Items.Add(11.0);
yourComboBox.Items.Add(12.0);
yourComboBox.Items.Add(14.0);
yourComboBox.Items.Add(16.0);
yourComboBox.Items.Add(18.0);
yourComboBox.Items.Add(20.0);
yourComboBox.Items.Add(22.0);
yourComboBox.Items.Add(24.0);
yourComboBox.Items.Add(26.0);
yourComboBox.Items.Add(28.0);
yourComboBox.Items.Add(36.0);
yourComboBox.Items.Add(48.0);
yourComboBox.Items.Add(72.0);


Regards

Rowan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900