0

In MFC i can get the it using the following method:

textbox = CWnd::GetWindow(GW_CHILD);

How can i directly access the textbox control of a combobox in C#, so that i can do the following:

textbox.TextAlign = HorizontalAlignment.Right;

???

A.B.
  • 2,374
  • 3
  • 24
  • 40
  • See http://stackoverflow.com/questions/3099133/right-justified-combobox-in-c-sharp – CtrlDot Mar 30 '14 at 11:37
  • @Nick. I already read this post. I still need to set textbox aliging to right. The implementation you suggest only affects the aligning of list items. – A.B. Mar 30 '14 at 13:18

1 Answers1

0

I think it is impossible in WinForms.

but you can btain the Horizontal-Alignment functionality by setting ComboBox1.RightToLeft To RightToLeft.Yes.

dovid
  • 6,354
  • 3
  • 33
  • 73