Padding in text controls

Discussion in 'AutoCAD' started by TomV, Feb 8, 2005.

  1. TomV

    TomV Guest

    The listbox, textbox, etc. controls I use seem to have left padding of about 2 characters, which looks rather odd. So whenever I add text to these controls, it always looks like there are 2 blank spaces at the beginning of the string (although there is not).

    I was able to fix the problem with the textbox control by setting the "SelectionMargin" property to false. The listbox control does not have this property however.

    I ran VB6 and inserted listboxes and textboxes and this problem does not occur.

    The application works fine, it just looks rather strange.

    What am I missing?
     
    TomV, Feb 8, 2005
    #1
  2. TomV

    VBA Guest

    Nothing ...

    Also, since the ListBox, TextBox, and ComboBox controls used in VBA are NOT
    the same as those used in VB don't waste your time comparing and wondering
    what's different.
     
    VBA, Feb 11, 2005
    #2
  3. TomV

    TomV Guest

    Thanks for the response.

    FYI, I've switched to the ListView control and no longer have the problem.
     
    TomV, Feb 11, 2005
    #3
  4. TomV

    VBA Guest

    The only problem with that solution is you do not have a license to use the
    ListView control in any VBA host application be it Office or AutoCAD or any
    other application.
     
    VBA, Feb 11, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.