.NET newbie - how to Resize controls?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: .NET newbie - how to Resize controls?

  1. #1
    Barry Seymour Guest

    .NET newbie - how to Resize controls?

    I have found the SetBounds method (not as intuitive as Move, but don't get
    me started...)

    What property do I use to determine the inside size of a form? The old
    ScaleWidth and ScaleHeight used to do it, but not any more. If I want to
    resize a control to fill a form at run time, what do I use for height and
    width?

    Thanks in advance..

    Barry Seymour



  2. #2
    Phil Weber Guest

    Re: .NET newbie - how to Resize controls?

    > What property do I use to determine the inside size
    > of a form?


    Barry: Me.ClientSize.Height and .Width

    > If I want to resize a control to fill a form at run time,
    > what do I use for height and width?


    Set the control's Dock property to Fill (at design time) or to DockStyle.Fill
    (at runtime).
    --
    Phil Weber



  3. #3
    Barry Seymour Guest

    Re: .NET newbie - how to Resize controls?

    AH. Thank you.

    Annoying I couldn't find it after so much work. It's hard being a newbie
    again after eleven years of VB. :-(

    Barry


    "Phil Weber" <pweber@nospam.fawcette.com> wrote in message
    news:3d93970e@10.1.10.29...
    | > What property do I use to determine the inside size
    | > of a form?
    |
    | Barry: Me.ClientSize.Height and .Width
    |
    | > If I want to resize a control to fill a form at run time,
    | > what do I use for height and width?
    |
    | Set the control's Dock property to Fill (at design time) or to
    DockStyle.Fill
    | (at runtime).
    | --
    | Phil Weber
    |
    |



  4. #4
    Constance J. Petersen Guest

    Re: .NET newbie - how to Resize controls?

    Hi Barry,

    "Barry Seymour" <bseymour@spamcop.net> wrote in message
    news:3d948a86@10.1.10.29...
    > Annoying I couldn't find it after so much work. It's hard being a newbie
    > again after eleven years of VB. :-(


    Want any reading recommendations?

    --
    Constance Petersen, DevX newsgroup section leader
    Build a great Web site: http://www.smartisans.com/
    New ASP.NET book: "Programming the Web with Visual Basic .NET"
    http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    --
    Please reply in the newsgroup so everyone can benefit



  5. #5
    Barry Seymour Guest

    Re: .NET newbie - how to Resize controls?

    Hi yourself! Good to talk with you after so long. I have a book or two on
    order now. I've been too busy working and raising a family to be a part of
    this community for years, but I'm back in it now -- this time as a learner
    rather than an author/expert.

    I uh, think I see a recommendation at the bottom of your message. <g> I got
    a lot out of your 'Doing Objects' book. If I find myself doing web
    programming with VB.NET, yours is the book I'll get, trust me on that!

    Barry


    "Constance J. Petersen" <constance@smartisans.com> wrote in message
    news:3d948fbf@10.1.10.29...
    | Hi Barry,
    |
    | "Barry Seymour" <bseymour@spamcop.net> wrote in message
    | news:3d948a86@10.1.10.29...
    | > Annoying I couldn't find it after so much work. It's hard being a newbie
    | > again after eleven years of VB. :-(
    |
    | Want any reading recommendations?
    |
    | --
    | Constance Petersen, DevX newsgroup section leader
    | Build a great Web site: http://www.smartisans.com/
    | New ASP.NET book: "Programming the Web with Visual Basic .NET"
    | http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    | --
    | Please reply in the newsgroup so everyone can benefit
    |
    |



  6. #6
    Constance J. Petersen Guest

    Re: .NET newbie - how to Resize controls?

    Hi Barry,

    I wondered if that was you. Long time, no e! :-)

    But about the "Doing Objects" book... That was Deborah Kurata. When we last
    talked, if memory serves, I had recently co-authored (with Zane and Karl) the
    VB4 How-To book and you were a new (or was it expecting?) Dad. Welcome back!
    More in email...
    --
    Constance Petersen, DevX newsgroup section leader
    Build a great Web site: http://www.smartisans.com/
    New ASP.NET book: "Programming the Web with Visual Basic .NET"
    http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    --
    Please reply in the newsgroup so everyone can benefit
    "Barry Seymour" <bseymour@spamcop.net> wrote in message
    news:3d94a44d$1@10.1.10.29...
    > Hi yourself! Good to talk with you after so long. I have a book or two on
    > order now. I've been too busy working and raising a family to be a part of
    > this community for years, but I'm back in it now -- this time as a learner
    > rather than an author/expert.
    >
    > I uh, think I see a recommendation at the bottom of your message. <g> I got
    > a lot out of your 'Doing Objects' book. If I find myself doing web
    > programming with VB.NET, yours is the book I'll get, trust me on that!
    >
    > Barry




  7. #7
    Barry Seymour Guest

    Re: .NET newbie - how to Resize controls?

    I think I see a recommendation at the bottom of this message! <g>

    Hey, I didn't know you were in Hancock! Good for you! I came from Marquette
    myself. Go Yoopers! <g>

    Barry

    "Constance J. Petersen" <constance@smartisans.com> wrote in message
    news:3d948fbf@10.1.10.29...
    | Hi Barry,
    |
    | "Barry Seymour" <bseymour@spamcop.net> wrote in message
    | news:3d948a86@10.1.10.29...
    | > Annoying I couldn't find it after so much work. It's hard being a newbie
    | > again after eleven years of VB. :-(
    |
    | Want any reading recommendations?
    |
    | --
    | Constance Petersen, DevX newsgroup section leader
    | Build a great Web site: http://www.smartisans.com/
    | New ASP.NET book: "Programming the Web with Visual Basic .NET"
    | http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    | --
    | Please reply in the newsgroup so everyone can benefit
    |
    |



  8. #8
    Constance J. Petersen Guest

    Re: .NET newbie - how to Resize controls?

    Hey dere,

    "Barry Seymour" <bseymour@spamcop.net> wrote in message
    news:3d94ab77@10.1.10.29...
    > Hey, I didn't know you were in Hancock! Good for you! I came from Marquette
    > myself. Go Yoopers! <g>


    Say yah to da yoop!

    --
    Constance Petersen, DevX newsgroup section leader
    Build a great Web site: http://www.smartisans.com/
    New ASP.NET book: "Programming the Web with Visual Basic .NET"
    http://amazon.com/exec/obidos/ASIN/1...tancepeterseA/
    --
    Please reply in the newsgroup so everyone can benefit



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