design-surface

BeginResize/EndResize Event for Control on WinForms Design Surface

一曲冷凌霜 提交于 2020-05-27 09:26:30
问题 TLDR: I would like to know how I can create a hook into a begin-resize and an end-resize event for a design-time control instance on the designer surface. Detail: Specifically, I am working with a design surface produced by a BasicLoader in the System.Design and System.Component.Design .NET namespaces. Specifically, I'm working a design-time instance of the TableLayoutPanel. That control exposes a SizeChanged event and a Resize event--alas, both fire during the resize operation--that is,

Keeping Adorner Glyphs On Top for Selected Control in Winforms Designer

寵の児 提交于 2020-02-07 02:00:48
问题 TLDR: I'm seeking the correct method for timing the rendering of a juxtaposed graphic for a particular control on a design surface so that the graphic always is painted ahead of the adornment glyphs when that control is selected. This question concerns control designers for Winforms: When the user places a control on the design surface, I want to display a graphic above the client area of the control. I have succeeded to some extent doing that for a TableLayoutPanel (TLP) control by

Keeping Adorner Glyphs On Top for Selected Control in Winforms Designer

走远了吗. 提交于 2020-02-07 01:59:29
问题 TLDR: I'm seeking the correct method for timing the rendering of a juxtaposed graphic for a particular control on a design surface so that the graphic always is painted ahead of the adornment glyphs when that control is selected. This question concerns control designers for Winforms: When the user places a control on the design surface, I want to display a graphic above the client area of the control. I have succeeded to some extent doing that for a TableLayoutPanel (TLP) control by

Need To Hide A Designer-Only Property From PropertyGrid For A .NET Winforms Control

你。 提交于 2020-01-05 04:17:37
问题 I am deep into using the Winforms designer (System.ComponentModel.Design namespace) in my C#/.NET solution so that my users have access to a form designer within my running application. Much of it works well, but I ran into a very specific problem: I encountered a property on a Microsoft control that appears only during design-time--i.e., for the design-time instance of the control. I want to suppress that property so that users cannot modify it when they place an instance of that control on

Need To Hide A Designer-Only Property From PropertyGrid For A .NET Winforms Control Part II

烂漫一生 提交于 2019-12-11 06:16:40
问题 This is a follow-up question to: Need To Hide A Designer-Only Property From PropertyGrid For A .NET Winforms Control I have replaced the default TypeDescriptorFilterService with my own implementation (so cool!), and the FilterProperties event handler is firing. I see how the previous question helped to hide those specific TableLayoutPanel properties. Now I have a more general requirement on a project to hide certain properties. My current specific goal is to hide the "(Name)" property for my