Results 1 to 6 of 6

Thread: size matters

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    size matters

    is there a way to set a textbox control size below 22?

    I want to make all my controls on my form smaller. I work in a 1280x1084 resolution. When I run my app on a 800x600 screen it is HUGE and the app doesn't all fit on the screen. Is there a way to make my all of my app fit on the screen of a 800x600 screen without changing the control sizes? I know in HTML you can use a percentage size of the screen, but dont see that in VB...
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    If you mean its height yes, you can.
    if you see you can not change it, thats because of the font size of your textbox. Either make them smaller or change the AutoSize property to False, so you can freely change the size



    P.S: In one of my mailboxes I recevie lots of spams, most of them read: Size Matters. They are all about herbal drugs that make .... bigger
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  3. #3

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    thanks, luna
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Just a note, if all the controls won't fit on the screen at 800X600 res, you should proabably look into your user interface design a little more. That is, unless it is an app your not releasing, then who cares.

  5. #5

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    well, it is being released..just throughout the company...but, yes I'm redesigning the interface for those blind %^$%^$% who use 800x600
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  6. #6
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    At load time you might adjust the size of the form based on the current resolution, and if you have dock/anchor settings reasonably correct the controls will stay in their relative place. Maybe something like:

    VB Code:
    1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.         Dim objScreen As Screen = Screen.PrimaryScreen
    3.         Me.Height = objScreen.WorkingArea.Height / 2
    4.         Me.Width = objScreen.WorkingArea.Width / 2
    5.     End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width