Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie questions on WinForm design
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01204604
Message ID:
01204721
Views:
17
>Instead of opening a new thread, I will just add my questions to this one. I know I will probably be asking a lot of questions so it is better not to overburden the UT.
>
>In the Win.NET world, what do you use as Shape in VFP? I use Shape in VFP just to surround a few controls with a nice rectangular box. I want to do the same in Win.NET.
>
>Thank you.


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
Next
Reply
Map
View

Click here to load this message in the networking platform