Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

If you notice when there is text in the text box portion on a Combobox there is a big gap between the border and the first charcter.

In a Textbox though, the text is displayed right next to the border.

 

I have a number of both controls on a form and it looks really bad with the spaces in the Comboboxes. Is there a way to have the Textbox have the gap or the combobox lose the gap?

Posted

I had the same problem once when by accident I put a blank space in the code to clear the textbox, like this:

txtItem.Text = " "

Then each item was added to the combo box with a gap on the left.

 

ailzaj

Posted

Not sure what you mean here?

 

I don't have any gaps? Are you talking about the indentation? If so just aligh the text to suit your needs, left, centre or right.

My website

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...