473,804 Members | 3,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wow, C# 2.0 (Visual Studio 2005) does not support Polyline

This language C# is more primitive than I thought. I just found out
that C#2.0 does not support polyline (see below), a very useful
feature for connecting points with a line automatically. Only C# 3.0
supports this. I'm curious, what did people do before version 3.0 was
released? I guess they had to construct their own functions that
manually connected the points? Unreal.

I think C# .Forms is beta compared to MFC and C++, but unfortunately
there's no going back...

RL

/*
// Add the Polyline Element //needs VS 2008 / C# 3.0 framework!
myPolyline = new Polyline();
myPolyline.Stro ke = Brushes.SlateGr ay;
myPolyline.Stro keThickness = 2;
myPolyline.Fill Rule = FillRule.EvenOd d;
Point Point4 = new Point(1, 50);
Point Point5 = new Point(10, 80);
Point Point6 = new Point(20, 40);
PointCollection myPointCollecti on2 = new PointCollection ();
myPointCollecti on2.Add(Point4) ;
myPointCollecti on2.Add(Point5) ;
myPointCollecti on2.Add(Point6) ;

*/
Jul 28 '08 #1
6 1815
raylopez99 <ra********@yah oo.comwrote:
This language C# is more primitive than I thought. I just found out
that C#2.0 does not support polyline (see below), a very useful
feature for connecting points with a line automatically. Only C# 3.0
supports this.
No, C# 3.0 doesn't support it at all. It's not a *language* construct.
Yes, Polyline is part of WPF which is part of .NET 3.0.

In Windows Forms, I suspect that GraphicsPath is what you're after. But
that's not part of C# (which is a language) either.

--
Jon Skeet - <sk***@pobox.co m>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Jul 28 '08 #2
On Jul 28, 9:25 am, raylopez99 <raylope...@yah oo.comwrote:
>
I think C# .Forms is beta compared to MFC and C++, but unfortunately
there's no going back...
If you don't like Windows Forms in C#, then watch this video and see
how you can use WPF to create a pretty cool interface:

http://www.dnrtv.com/default.aspx?showNum=115
Chris
Jul 28 '08 #3
On Jul 28, 7:40*am, Jon Skeet [C# MVP] <sk...@pobox.co mwrote:
.
>
In Windows Forms, I suspect that GraphicsPath is what you're after. But
that's not part of C# (which is a language) either.
GraphicsPath is indeed what I'm seeking, and it's part of Namespace:
System.Drawing. Drawing2D, which exists in my library, so I don't see
why you say it's not part of C# (which is not a ANSI type standard,
but owned by MSFT) unlike Polyline, which is part of
System.Windows. Shapes;, which would not load into my C# library
(Intellisense did not detect it).

I upgraded to C# 3.0 just now (Express, free edition) 'for nothing',
but I like the interface a bit better than C#2.0 so it might not be
for nought.

Thanks for your help.

RL
Jul 28 '08 #4
On Jul 28, 10:47*am, Chris Dunaway <dunaw...@gmail .comwrote:
On Jul 28, 9:25 am, raylopez99 <raylope...@yah oo.comwrote:
>
If you don't like Windows Forms in C#, then watch this video and see
how you can use WPF to create a pretty cool interface:

http://www.dnrtv.com/default.aspx?showNum=115
Silverlight only allowed me to listen to the guys voice, from
Nashville--I like his Southern accent, what a hoot--but video would
not come up. Anyway for me Forms is OK, so long as I have people on
this forum to guide me when I get stuck in the occasional dead
end...sure beats having to use the MSDN documentation, which with so
many OOP programming language versions is confusing (witness this
thread, for sure I thought Polyline was part of C# 3.0, or at least
that was the impression I got from reading the documentation--
apparently it's used for some server side ASP type programming with
C#.

RL

Jul 28 '08 #5
raylopez99 <ra********@yah oo.comwrote:
In Windows Forms, I suspect that GraphicsPath is what you're after. But
that's not part of C# (which is a language) either.

GraphicsPath is indeed what I'm seeking, and it's part of Namespace:
System.Drawing. Drawing2D, which exists in my library, so I don't see
why you say it's not part of C# (which is not a ANSI type standard,
but owned by MSFT) unlike Polyline, which is part of
System.Windows. Shapes;, which would not load into my C# library
(Intellisense did not detect it).
C# is a language. It doesn't define the libraries that come with it
beyond a few required types (IEnumerable, IDisposable etc). It's
helpful to distinguish between the language, the CLR (the runtime
"engine" if you will) and the libraries.

--
Jon Skeet - <sk***@pobox.co m>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Jul 28 '08 #6
On Jul 29, 12:15*am, raylopez99 <raylope...@yah oo.comwrote:
why you say it's not part of C# (which is not a ANSI type standard,
but owned by MSFT)
C# (1 and 2) is actually standardized by Ecma and ISO:

http://www.ecma-international.org/pu...s/Ecma-334.htm
http://www.iso.org/iso/iso_catalogue...csnumber=42926

C# 3 is likely to follow suit eventually.

Nonetheless, the contents of the System namespace and its
subnamespaces is not regulated by the C# language specification, apart
from a few foundational types that are required in any environment
able to be targeted by a C# compiler - stuff like System.Object,
System.String, System.Int32, System.Attribut e etc. It does not cover
collections, IO, XML processing, UI frameworks etc; as such, those are
not part of the C# language.
Jul 29 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1716
by: Thom Little | last post by:
I have ASP.NET websites deployed on a number of servers. Thee were developed with Visual Studio 2003. Is it true that Visual Studio 2005 only supports .NET Framework 2.0 and I will be required to have Visual Studio 2005 for those ASP.NET websites and Visual Studio 2003 for my currently deployed websites? Is there a summary document listing what is provided in Visual Studio 2005? Apparently there is support for .NET Framework 1 and 2,...
8
16290
by: William LaMartin | last post by:
I just received my Visual Studio upgrade to 2005 and tried to create a new web site via File | New Web Site with location http. Unfortunately I received the following error: "Visual Web Developer does not support creating Web sites on a SharePoint Web server" If I create a new server extensions 2002 web in IIS and mark it as an application and try to use it from Visual Studio I receive the same error.
4
2540
by: Andrew Robinson | last post by:
My main dev machine has WinXp and VS2005 (pro). 1. I need to install VWD Express Edition so that I can do some instruction on this. Any issues with both on the same machine. Installation order? 2. Does VWD Express Edition support the idea of Solutions? I coun't figure out how to create a blank solution which I usually do with VS2005 (and then add my web site to the solution.)
10
8209
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied everything I can find on COM Interop and .NET. I've also tried many of the 'Walkthroughs' on the MSDN site relating to COM add-ins, .NET and Office XP but am unable to get even these working in Excel 2002 or Word 2002. I've installed the Office XP...
8
6276
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
3
6067
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
5
2221
by: cj | last post by:
I'm getting started writing WEB program in VB2005. I'm been doing windows apps to date. A friend told me to get Visual Web Developer Express Edition. But I have Visual Studio Pro 2005 and it says I have Visual Web Developer in it. I'm just not sure what that is and how to start it. Any advise?
1
19853
by: bharathreddy | last post by:
This Article gives an introduction to VSTS Team Foundation & fundamental difference between Visual Source Safe (VSS) and VSTS Team Foundation. Team Foundation is a set of tools and technologies that enable a team to collaborate and coordinate a project (software or non software projects). The team collaboration is achieved by several tools and features available as part of "Team Foundation". Team Foundation Server The Team...
3
1817
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I must be out of my mind. I used visual studio .net 2003 before and I installed 2005 a while back, but seldom to use it. Recently I was required to start to learn C# asp.net. So I tried to open a web application project in 2005. but I cannot find any asp.net web application or asp.net web services project templates which I can see them in .net 2003. What's going on? did I miss anything when I installed? is there any easy way to...
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10567
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5515
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.