Click here to Skip to main content
15,886,737 members
Home / Discussions / C#
   

C#

 
NewsN Queen algorithm design Pin
ShomaL University of AMOL5-May-12 22:45
ShomaL University of AMOL5-May-12 22:45 
AnswerRe: N Queen algorithm design Pin
Sandeep Mewara5-May-12 23:21
mveSandeep Mewara5-May-12 23:21 
GeneralRe: N Queen algorithm design Pin
Richard MacCutchan6-May-12 1:38
mveRichard MacCutchan6-May-12 1:38 
GeneralMy Vote of 1 Pin
Keith Barrow6-May-12 2:30
professionalKeith Barrow6-May-12 2:30 
GeneralRe: N Queen algorithm design Pin
PIEBALDconsult6-May-12 5:35
mvePIEBALDconsult6-May-12 5:35 
QuestionImage Encryption Pin
Danial C5-May-12 21:41
Danial C5-May-12 21:41 
AnswerRe: Image Encryption Pin
Sandeep Mewara5-May-12 23:24
mveSandeep Mewara5-May-12 23:24 
QuestionProblems with PathGeometry Pin
gabriel1235-May-12 18:28
gabriel1235-May-12 18:28 
Hi I am new in C# I try an application like this
"

Title="Window1" Height="300" Width="300">
<grid>
<path name="myPath" stroke="Black"
="" strokethickness="1">



"
and

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DynamicPoint002
{
///
/// Interaction logic for Window1.xaml
///

public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();

PathFigure myPathFigure = new PathFigure();
myPathFigure.StartPoint = new Point(10, 50);

LineSegment myLineSegment = new LineSegment();
myLineSegment.Point = new Point(200, 70);

PathSegmentCollection myPathSegmentCollection = new PathSegmentCollection();
myPathSegmentCollection.Add(myLineSegment);

myPathFigure.Segments = myPathSegmentCollection;

PathFigureCollection myPathFigureCollection = new PathFigureCollection();
myPathFigureCollection.Add(myPathFigure);

PathGeometry myPathGeometry = new PathGeometry();
myPathGeometry.Figures = myPathFigureCollection;

Path myPath = new Path();
myPath.Stroke = Brushes.Black;
myPath.StrokeThickness = 1;
myPath.Data = myPathGeometry;

}
}
}


but I do not understand why did not show my the line defined already?

Thanks a lot!!!
H.
AnswerRe: Problems with PathGeometry Pin
Sandeep Mewara6-May-12 1:23
mveSandeep Mewara6-May-12 1:23 
Questionchoosing a instalation directory fo aplications Pin
smartradio5-May-12 7:48
smartradio5-May-12 7:48 
AnswerRe: choosing a instalation directory fo aplications Pin
Ravi Bhavnani5-May-12 12:56
professionalRavi Bhavnani5-May-12 12:56 
GeneralRe: choosing a instalation directory fo aplications Pin
smartradio7-May-12 14:00
smartradio7-May-12 14:00 
GeneralRe: choosing a instalation directory fo aplications Pin
Ravi Bhavnani7-May-12 14:09
professionalRavi Bhavnani7-May-12 14:09 
QuestionEvent/Appointment Calendar Pin
danieltm34-May-12 23:32
danieltm34-May-12 23:32 
AnswerRe: Event/Appointment Calendar Pin
Ravi Bhavnani5-May-12 13:01
professionalRavi Bhavnani5-May-12 13:01 
Questionstreaming text on panels (sheets) Pin
Danzy834-May-12 11:08
Danzy834-May-12 11:08 
AnswerRe: streaming text on panels (sheets) Pin
Luc Pattyn4-May-12 16:54
sitebuilderLuc Pattyn4-May-12 16:54 
Questiongridview row not triggering Pin
Dhyanga4-May-12 9:38
Dhyanga4-May-12 9:38 
AnswerRe: gridview row not triggering Pin
Eddy Vluggen6-May-12 1:12
professionalEddy Vluggen6-May-12 1:12 
QuestionHow to create existing chat control as a user control in C# Pin
ChandrakanthGaddam4-May-12 1:15
ChandrakanthGaddam4-May-12 1:15 
AnswerRe: How to create existing chat control as a user control in C# Pin
Ravi Bhavnani4-May-12 3:38
professionalRavi Bhavnani4-May-12 3:38 
NewsRe: How to create existing chat control as a user control in C# Pin
Eddy Vluggen4-May-12 5:36
professionalEddy Vluggen4-May-12 5:36 
AnswerRe: How to create existing chat control as a user control in C# Pin
Eddy Vluggen4-May-12 5:39
professionalEddy Vluggen4-May-12 5:39 
QuestionRedirect output from a unmanaged dll to a winform textbox Pin
andreas043-May-12 23:07
andreas043-May-12 23:07 
AnswerRe: Redirect output from a unmanaged dll to a winform textbox Pin
Richard MacCutchan3-May-12 23:39
mveRichard MacCutchan3-May-12 23:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.