[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.
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....
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.