# ComboBox style: can't style text

**URL:** <https://forum.kirupa.com/t/combobox-style-cant-style-text/298695>\
**Category:** flash\
**Created:** [October 23, 2009, 7:54am UTC](https://forum.kirupa.com/t/combobox-style-cant-style-text/298695 "2009-10-23T07:54:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stratboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stratboy/32/3054_2.png) [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Post date:** [October 23, 2009, 7:54am UTC](https://forum.kirupa.com/t/combobox-style-cant-style-text/298695/1 "2009-10-23T07:54:34Z")

</div>

Hi! I’ve searched for some solution but found nothing useful.

I’ve got a comboBox component on the stage, instance name ‘combo’. I want to style the text. I followed the adobe instructions, but they seem not work, and I get no errors.

```auto

import fl.data.DataProvider;
import flash.text.TextFormat; 
 
var tf:TextFormat = new TextFormat();
tf.font = "Georgia";
tf.bold = true;
tf.size = 24;

var data = [
	{ label:'A', value:1 }
	,{ label:'B', value:2 }
	,{ label:'C', value:3 }
];

combo.setStyle("textFormat",tf);
combo.dataProvider = new DataProvider(data);

```

Text doesn’t get the styles (font, bold, size).  
What am I doing wrong?
