Fixed Single border with labels and textboxes (1 of 2 post)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: Fixed Single border with labels and textboxes (1 of 2 post)

  1. #1
    Patrick Ireland Guest

    Fixed Single border with labels and textboxes (1 of 2 post)


    I am having a senior moment or something sure seems odd about using
    the border feature with labels and text boxes. It appears to me that
    the fixed single border with labels works differently than with text
    boxes. If I dimension a label as 20x64 with a fixed single border, I get
    a 20x60 area with the label contained in the 18x58 inner boundary (one all
    the way around for the border for you math weenies). I don't appear to
    get the same result from with text boxes. As best as I can determine with
    stone knives and bear claws is that the border is outside the bounds of the
    text box, keep up with math weenies, the area covered is 22x62. Now I certainly
    can be wrong but I do expected the two to operate with fixed single border
    the same. An additional unexpected feature is that when I select a Courier
    New 16 point font, I get a 15.75 point. Is net trimming my font size to
    fit my box size?

    What got me to this haunted house was trying to put specifically sized label
    and text boxes within a panel. I can here you say "use the grid
    control, Luke, use the grid control", however, the MS grid control with
    .NET doesn't let me do some of the requirements for the GUI that the customer
    has grown attached.

    I am providing a separate post of sample code that demonstrates the questions
    of the border.

    Comments and enlightenment will be well recieved, useless verbage will be
    forwarded directly to the Dark Side. 8-)

    Pat



  2. #2
    Patrick Ireland Guest

    Re: Fixed Single border with labels and textboxes (1 of 2 post)


    More info for the worker bees. Place a text box on a blank form.
    I am unable to size (in the Y direction) the box. It appears as if
    there is a prefered size for each font and point size. Using the default
    font of a text box vary the font point size. The Y size of the text box
    can not be altered. If you do, it just resets itself. Bare in that I
    am trying to use the fixed single border size. Anybody got an idea how
    to size (in the Y direction) a text box regardless of font point size?

  3. #3
    Paul Mc Guest

    Re: Fixed Single border with labels and textboxes (1 of 2 post)


    G'day Patrick.

    >Anybody got an idea how
    >to size (in the Y direction) a text box regardless of font point size?


    Only one way that I know of: set MultiLine to true...

    HTH,
    Cheers,
    Paul


  4. #4
    Paul Mc Guest

    Re: Fixed Single border with labels and textboxes (1 of 2 post)


    DOH!

    Further investigation reveals a better way...

    Simply set the "AutoSize" property to false.

    Cheers,
    Paul

  5. #5
    Patrick Ireland Guest

    Re: Fixed Single border with labels and textboxes (1 of 2 post)


    Thanks Paul

    I'll give it a try tonight.

    Pat

    "Paul Mc" <paulmc@nospam.thehub.com.au> wrote:
    >
    >DOH!
    >
    >Further investigation reveals a better way...
    >
    >Simply set the "AutoSize" property to false.
    >
    >Cheers,
    >Paul



  6. #6
    Patrick Ireland Guest

    Re: Fixed Single border with labels and textboxes (1 of 2 post)


    The aussie speaks the truth

    TNX

    Pat


    "Paul Mc" <paulmc@nospam.thehub.com.au> wrote:
    >
    >DOH!
    >
    >Further investigation reveals a better way...
    >
    >Simply set the "AutoSize" property to false.
    >
    >Cheers,
    >Paul



  7. #7
    Kathleen Dollard Guest

    Re: Fixed Single border with labels and textboxes (1 of 2 post)

    Pat,

    > The aussie speaks the truth


    They are _really_ obnoxious when they do that all the time <vbg>

    Kathleen



  8. #8
    Paul Mc Guest

    Re: Fixed Single border with labels and textboxes (1 of 2 post)


    We usually try to speak sh*t only amongst close friends and relatives... <g>

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center