Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie questions on WinForm design
Message
 
To
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:
01204760
Views:
22
Correct, although that is also a panel and thus changes form hierarchy and such, which may not be desired...

Markus


>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




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Previous
Reply
Map
View

Click here to load this message in the networking platform