Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adjusting width and position of Combobox

Status
Not open for further replies.

robertcollins

Programmer
Mar 19, 2001
9
0
0
US
How do I adjust the width and position of list or combobox?. the COLUMNWIDTH, WIDTH and LEFT properties seem to affect the inital box only and not the open (listed) portion of the control. I have a field of length 180 and this seem to open with right border aligned and left border off the screen!

Thanks.
 
Sure you are not using the entire 180 char in your table and this sitting was a just in case one.
Consider using ALLT(FieldName) to fill you Combo instead of using just the FieldName may be this will solve your problem.
Walid Magd
Engwam@Hotmail.com
 
If you highlight the combo box in the form designer and use the builder.. in the resulting ComboBox Builder.. select the 3.Layout tab.... and now you can adjust the individual column width etc.. (read the note at the top in the builder..this will guide you)
So the correct width can be set as per your choice...
........OR...........
in the property event or in the init event of the combo box set
MyComboBox.ColumnWidths = 1stColWidth,2ndColWidth,3rdColWidth, etc etc.

This will fix your problem.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Hi!

In addition, ColumnCount property should be set to value greater than zero, otherwise ColumnWidths has no effect.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top