+ Reply to Thread
Results 1 to 5 of 5

Thread: sizing handles in VB.NET controls

  1. #1
    ahmed_one is offline VB.NET Forum Newbie ahmed_one is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Jun 2009
    Age
    29
    Posts
    1
    Reputation
    0

    Default sizing handles in VB.NET controls

    Hi,

    I am new to VB.NET, recently I've install Visual Studio 2008. Im facing problem in VB.NET, when using controls from Toolbox like textbox,lable...i don't see any sizing handles to resize the controls as per my needs.Only buttons control have sizing handles.


    Is there anything I need to do to enable sizing handles??

    Ahmed

  2. #2
    majicmonk is offline VB.NET Forum Newbie majicmonk is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Jul 2009
    Age
    33
    Posts
    5
    Reputation
    0

    Default

    Hi ahmed_one, go to view/visual aids and make sure you have both SHOW and VISIBLE BORDERS ticked.

    Hope this helps.

  3. #3
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Age
    41
    Posts
    6,911
    Reputation
    670

    Default

    A Label control doesn't show sizing handles because its Size is determined by the Text it contains. To change that you must set the AutoSize property to False and then it will provide sizing handles just like a Button.

    The TextBox provides sizing handles on the left and right sides but not on the corners or the top and bottom because the Height of a TextBox is determined by its Font. To change that you must set the Multiline property to True, although that will also allow the user to enter multiple lines.

  4. #4
    majicmonk is offline VB.NET Forum Newbie majicmonk is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Jul 2009
    Age
    33
    Posts
    5
    Reputation
    0

    Default

    jmcilhinney, I think your talking about standard asp? In vb.net sizing handles are shown at all corners when activated in the view menu.

  5. #5
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute jmcilhinney has a reputation beyond repute
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Age
    41
    Posts
    6,911
    Reputation
    670

    Default

    Quote Originally Posted by majicmonk View Post
    jmcilhinney, I think your talking about standard asp? In vb.net sizing handles are shown at all corners when activated in the view menu.
    I'm not talking about ASP or ASP.NET. I'm talking about Windows Forms.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

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