Results 1 to 3 of 3

Thread: [2.0] Remove resize handles on user control?

  1. #1

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    [2.0] Remove resize handles on user control?

    I did a quick search on the forum and didn't find what I was after. I have a user control that I'm calling CheckTextBox. It works pretty nicely, but it's supposed to be a fixed-height control. Right now I have minimum and maximum sizes set to prevent resizing vertically, but the handles are still there. Is there any way to remove the handles altogether? Much like a normal TextBox with MultiLine=false.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [2.0] Remove resize handles on user control?

    You might be able to do something with designer attributes but I'm not sure. This does ring a bell though, I'll have a look....
    I don't live here any more.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] Remove resize handles on user control?

    I think you'd have to implement your own designer for the class. The Designer attribute specified for the TextBox class, which does remove the resizing grips in the designer if it's single-line, is the System.Windows.Forms.Design.TextBoxDesigner class. How it's implemented I don't know, but that's where I'd be looking. There and any tutorials on authoring controls I could find.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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