A1VBCode Forums

Strange spaces in bound combobox


http://a1vbcode.com/vbforums/Topic32390.aspx

By Zvi - 4/15/2016

The fields of first and last name are set to varchar(15) to eliminate the empty spaces but when running, the names in the combobox have a weird spacing issue. What's wrong?



I'm using VS 2015, VBnet windows form.


By zack - 4/19/2016

I assume the data is entered into the database fields through textboxes. Perhaps you can try removing white space before writing to the database, or try setting the textbox maxlength property.