Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie questions on WinForm design
Message
From
16/03/2007 14:14:44
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01204604
Message ID:
01204752
Views:
23
Markus there is no shape but there is a GroupBox control that is exactly for that, it even have a caption on top.

>There is no shape in WinForms (although there is in WPF). So in WinForms, you may have to create it yourself. Something like this would do:
>
>
public class Shape : Control
>{
>    public override void OnPaint(PaintEventArgs e)
>    {
>        e.Graphics.DrawRectangle(this.ClientSize);
>    }
>}
>
>The code may not be exactly right as I am just typing it in by heart, but you get the idea...
>
>Markus
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform