Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

DrawRoundRectangle

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karel Petrasek - 22 Mar 2007 11:59 GMT
Hi.
In some last version of OpenNetCF I was able to use "DrawRoundRectangle"
method. It was in OpenNetCF.Drawing.GraphicsEx namespace.

I can not found something similar in OpenNETCF 2.0 orelse in CF 2.0.

Can you help me?
BR,
kp
Fabien - 22 Mar 2007 13:30 GMT
Hi,

Check out this link:
http://msdn2.microsoft.com/fr-fr/library/system.drawing.rectangle.round(VS.80).aspx
You can draw a rectangle and then make round the corners.

Fabien Decret

Windows Embedded Consultant

ADENEO (ADESET)http://www.adeneo.adetelgroup.com/

On 22 mar, 11:59, Karel Petrasek
<KarelPetra...@discussions.microsoft.com> wrote:
> Hi.
> In some last version of OpenNetCF I was able to use "DrawRoundRectangle"
[quoted text clipped - 5 lines]
> BR,
> kp
Neil Cowburn - 22 Mar 2007 15:07 GMT
System.Drawing.Rectangle.Round is something *completely* different than what
the OP requires.

Rectangle.Round performs a Math.Round operation on Left, Top, Width and
Height properties of the Rectangle instance.

Signature

Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/
http://www.smartdeviceframework.com/

> Hi,
>
[quoted text clipped - 19 lines]
>> BR,
>> kp
Fabien - 22 Mar 2007 16:04 GMT
Ok thanks for the information... Sorry for the mistake, I had ever
used it before and as it was in System.Drawing, I thought it was to
round the angles of the rectangle.

Fabien Decret

Windows Embedded Consultant

ADENEO (ADESET)http://www.adeneo.adetelgroup.com/

> System.Drawing.Rectangle.Round is something *completely* different than what
> the OP requires.
[quoted text clipped - 36 lines]
>
> - Afficher le texte des messages précédents -
Neil Cowburn - 22 Mar 2007 15:04 GMT
DrawRoundRectangle does exist in Smart Device Framework 2.0. It is in the
OpenNETCF.Drawing.GraphicsEx class. You will need to add a reference to
OpenNETCF.Drawing.dll.

DrawRoundRectangle has the following signature:

public void DrawRoundRectangle(PenEx pen,  Rectangle rc, Size size)

Signature

Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/
http://www.smartdeviceframework.com/

> Hi.
> In some last version of OpenNetCF I was able to use "DrawRoundRectangle"
[quoted text clipped - 5 lines]
> BR,
> kp
Karel Petrasek - 23 Mar 2007 12:59 GMT
Maybe it's a some missunderstanding.
Smart Device Framework 2.0 = OpenNETCF 2.0
There is no OpenNETCF.Drawing.GraphicsEx class in version 2.0.
Am I right?

> DrawRoundRectangle does exist in Smart Device Framework 2.0. It is in the
> OpenNETCF.Drawing.GraphicsEx class. You will need to add a reference to
[quoted text clipped - 13 lines]
> > BR,
> > kp
Neil Cowburn - 23 Mar 2007 13:25 GMT
There is no such thing as OpenNETCF 2.0. Referring to Smart Device Framework
2.0 as "OpenNETCF 2.0" is analogous to referring .NET Compact Framework 2.0
as "Microsoft 2.0".

As for the GraphicsEx class, yes it is MIA. It should be in the namespace,
but it's missing. I'm looking into what happened here.

Signature

Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/
http://www.smartdeviceframework.com/

> Maybe it's a some missunderstanding.
> Smart Device Framework 2.0 = OpenNETCF 2.0
[quoted text clipped - 19 lines]
>> > BR,
>> > kp
Karel Petrasek - 23 Mar 2007 13:37 GMT
Hi again.
I'm looking at your home site http://www.opennetcf.com/.
The full name of "what we talking about" is:
OpenNETCF Smart Device Framework 2.0 :)
No offense, "OpenNETCF 2.0" is not so out.

No matter. Important is, where GraphicsEx disappered...

kp

> There is no such thing as OpenNETCF 2.0. Referring to Smart Device Framework
> 2.0 as "OpenNETCF 2.0" is analogous to referring .NET Compact Framework 2.0
[quoted text clipped - 26 lines]
> >> > BR,
> >> > kp
Neil Cowburn - 23 Mar 2007 14:02 GMT
No offense taken but you're wrong. "OpenNETCF 2.0" could refer to ANY
and/or ALL of our products, so it is quite a fair way out. By your
reasoning. everyone should call the "Microsoft .NET Compact Framework 2.0"
"Microsoft 2.0" which is just plain inaccurate.

It looks like the source code was mistakenly excluded from the
OpenNETCF.Drawing project. The source still exists as I can see it in my
local copy of the repository. This will be fixed for v2.1. In fact, I've
logged this as a bug: http://bugzilla.opennetcf.com/show_bug.cgi?id=79

Signature

Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/
http://www.smartdeviceframework.com/

> Hi again.
> I'm looking at your home site http://www.opennetcf.com/.
[quoted text clipped - 41 lines]
>> >> > BR,
>> >> > kp
Karel Petrasek - 23 Mar 2007 14:20 GMT
Thank you for your support.

I'm looking forward to version 2.1

kp

> No offense taken but you're wrong. "OpenNETCF 2.0" could refer to ANY
> and/or ALL of our products, so it is quite a fair way out. By your
[quoted text clipped - 51 lines]
> >> >> > BR,
> >> >> > kp
indiekiduk@gmail.com - 24 Mar 2007 11:29 GMT
On Mar 23, 1:20 pm, Karel Petrasek
<KarelPetra...@discussions.microsoft.com> wrote:
> Thank you for your support.
>
[quoted text clipped - 87 lines]
> > >> >> > BR,
> > >> >> > kp

Most people I know refer to it as "OpenNETCF 2" since the dlls are all
called that.

Is there any chance you could add the Serial Port library back in. The
MS one doesn't work very well and hangs some devices, e.g. the XDA
Orbit.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.