the control line is WPF, there is no good WPF implementation? [size=16 px] and when I click on the button has built a form, at this time will not be able to click on the main form, what method can let two forms can click? Not only the new forms close to operate the main form of [/size]
CodePudding user response:
What do you mean the line of control?
The showdialog form?
CodePudding user response:
reference 1st floor Bridge_go response: what do you mean the line of control? The showdialog form? Yes, only solved the show, thank you for your guidance, Line is groupbox control the line, CodePudding user response:
GroupBox redraw lines on the paint event Private void setGroupBoxBorder_Paint (object sender, PaintEventArgs e) { GroupBox GBX=(GroupBox) sender; Um participant raphics. DrawLine (Pens. Green, 1, 7, 8, 7); Um participant raphics. DrawLine (Pens. Green, um participant raphics. MeasureString (GBX. Text, GBX. The Font). Width + 8, 7, GBX. Width - 2, 7); Um participant raphics. DrawLine (Pens. Green, 1, 7, 1, GBX. Height - 2); Um participant raphics. DrawLine (Pens. Green, 1, GBX. Height 2, GBX. Width - 2, GBX. Height - 2); Um participant raphics. DrawLine (Pens. Green, GBX. Width - 2, 7, GBX. Width - 2, GBX. Height - 2); } CodePudding user response:
The Grid encase Border and Textblock, can achieve the line, CodePudding user response:
How can realize the default style export to see In vs document outline selected GroupBox right - & gt; Edit template - & gt; Copy editor CodePudding user response:
Do you want this effect? Winform, groupbox control line