N
NET CF Questions
We have a combobox populated with data (let's say product names) with
some names being longer than the pull down window (box?) so part of
the name is not shown.
This is not a problem.
Our problem is that instead of showing the name from the left (or in
other words the start of the name) it shows it from the right so the
head of the product name is not shown.
As an example of what's happening, say the full text in the pull down
row is:
"Zebra Pens Gel Type"
Instead of displaying
"Zebra Pens Gel"
(which is acceptable)
it displays
"a Pens Gel Type"
The code for the combobox is;
Here is the code:
With cob_MyCombo
.DisplayMember = "DISP"
.ValueMember = "VAL"
.DataSource = ary_ArrayList
.SelectedIndex = int_SelectIndex
If str_DefaultValue <> "" Then
.Text = str_DefaultValue
End If
End With
Everything I've heard tells me the default is to show the string from
the left so I have no idea what's happening here.
Any ideas or what I need to do to fix this?
some names being longer than the pull down window (box?) so part of
the name is not shown.
This is not a problem.
Our problem is that instead of showing the name from the left (or in
other words the start of the name) it shows it from the right so the
head of the product name is not shown.
As an example of what's happening, say the full text in the pull down
row is:
"Zebra Pens Gel Type"
Instead of displaying
"Zebra Pens Gel"
(which is acceptable)
it displays
"a Pens Gel Type"
The code for the combobox is;
Here is the code:
With cob_MyCombo
.DisplayMember = "DISP"
.ValueMember = "VAL"
.DataSource = ary_ArrayList
.SelectedIndex = int_SelectIndex
If str_DefaultValue <> "" Then
.Text = str_DefaultValue
End If
End With
Everything I've heard tells me the default is to show the string from
the left so I have no idea what's happening here.
Any ideas or what I need to do to fix this?