8

In my desktop application, I am using a tamil font (not unicode, but glyphs) in a ComboBox Font property.

It displays well when I type into it. But my auto suggestion in the DropDown box is displaying with the default font. How to change that font as well?

Private Sub Billing_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
  If My.Settings.Options_Display_UseOtherLanguage Then
       CustomerNameCombo.Font = My.Settings.Options_Display_OtherLanguageFont
  End If
End Sub

tamil in vb.net

I am using .NET Framework v4.0

Community
  • 1
  • 1
Raj
  • 22,346
  • 14
  • 99
  • 142

2 Answers2

1

enter image description here

Are you using custom source for auto suggestion? If so the source should also be in the same language. (i.e)in this case, auto suggestion source should also be in tamil.

Else set AutoCompleteSource to ListItems, where the datasource is in tamil

Pugazh
  • 9,453
  • 5
  • 33
  • 54
  • the source will be in English only. I just need to change the font (not the language) in the dropdown area.. – Raj Jan 12 '13 at 15:14
0

You should check out the DropDownStyle property of the ComboBox. You should be able to set the font for your ComboBox in the DrawItem event. The MSDN link I provided has an example that should point you in the right direction. Hope it helps.

bschultz
  • 4,244
  • 1
  • 25
  • 33
  • 1
    DrawItem event is called "only" when you click the button in the comboxbox which shows all the items in the dropdownlist. DrawItem is not fired when the autocomplete dropdown is shown. – Raj Nov 03 '12 at 17:58