Click here to Skip to main content
15,890,336 members
Home / Discussions / C#
   

C#

 
AnswerRe: settings in C# Pin
Radgar20-Feb-07 4:44
Radgar20-Feb-07 4:44 
AnswerRe: settings in C# Pin
hadjy10120-Feb-07 5:32
hadjy10120-Feb-07 5:32 
QuestionDLL Hell? Pin
Radgar20-Feb-07 3:41
Radgar20-Feb-07 3:41 
AnswerRe: DLL Hell? Pin
kubben20-Feb-07 3:49
kubben20-Feb-07 3:49 
GeneralRe: DLL Hell? Pin
Radgar20-Feb-07 3:51
Radgar20-Feb-07 3:51 
GeneralRe: DLL Hell? Pin
Dave Kreskowiak20-Feb-07 6:44
mveDave Kreskowiak20-Feb-07 6:44 
QuestionBezier Points Pin
Jim Warburton20-Feb-07 3:12
Jim Warburton20-Feb-07 3:12 
AnswerRe: Bezier Points Pin
Obaid ur Rehman20-Feb-07 3:59
Obaid ur Rehman20-Feb-07 3:59 
Why don't you make your own method for that. May be the following code might help. If my memory serves me correctly, I've copied this code from a book by Charles Petzold on Windows forms programming.
<br />
<br />
public void DrawBezier(Graphics grfx, Pen pen, Point p0, Point p1, Point p2, Point p3)<br />
		{<br />
			Point[] curve = new Point[100];<br />
<br />
			for (int i = 0; i < curve.Length; i++)<br />
			{<br />
				float u = (float) i / (curve.Length - 1);<br />
				//Console.WriteLine(u);<br />
<br />
				float y=((1-u)*(1-u)*(1-u)* p0.Y) + <br />
					(3*u*  (1-u)*(1-u)* p1.Y) + <br />
					(3*u*u*      (1-u)* p2.Y) + <br />
					(u*u*u*             p3.Y); <br />
<br />
				float x=((1-u)*(1-u)*(1-u)* p0.X) + <br />
					(3*u*  (1-u)*(1-u)* p1.X) + <br />
					(3*u*u*      (1-u)* p2.X) + <br />
					(u*u*u            * p3.X);<br />
<br />
<br />
				curve[i] = new Point((int) Math.Round(x), (int) Math.Round(y));<br />
			}<br />
			grfx.DrawLines(pen, curve);<br />
<br />
		}<br />

QuestionHow to press a key Pin
sharpiesharpie20-Feb-07 3:05
sharpiesharpie20-Feb-07 3:05 
GeneralRe: How to press a key Pin
Martin#20-Feb-07 3:16
Martin#20-Feb-07 3:16 
GeneralRe: How to press a key Pin
sharpiesharpie20-Feb-07 3:20
sharpiesharpie20-Feb-07 3:20 
AnswerRe: How to press a key Pin
Martin#20-Feb-07 3:28
Martin#20-Feb-07 3:28 
GeneralRe: How to press a key Pin
sharpiesharpie20-Feb-07 3:37
sharpiesharpie20-Feb-07 3:37 
GeneralRe: How to press a key Pin
Russell Jones20-Feb-07 5:06
Russell Jones20-Feb-07 5:06 
GeneralRe: How to press a key Pin
sharpiesharpie20-Feb-07 5:18
sharpiesharpie20-Feb-07 5:18 
GeneralRe: How to press a key Pin
Russell Jones20-Feb-07 5:25
Russell Jones20-Feb-07 5:25 
AnswerRe: How to press a key Pin
Martin#21-Feb-07 23:06
Martin#21-Feb-07 23:06 
Questionaccess data from text box Pin
Sunshine Always20-Feb-07 2:28
Sunshine Always20-Feb-07 2:28 
AnswerRe: access data from text box Pin
sharpiesharpie20-Feb-07 3:08
sharpiesharpie20-Feb-07 3:08 
GeneralRe: access data from text box Pin
Sunshine Always20-Feb-07 17:18
Sunshine Always20-Feb-07 17:18 
QuestionUTF8Encoding question Pin
Martin#20-Feb-07 0:52
Martin#20-Feb-07 0:52 
AnswerRe: UTF8Encoding question Pin
lmoelleb20-Feb-07 2:08
lmoelleb20-Feb-07 2:08 
GeneralRe: UTF8Encoding question Pin
Martin#20-Feb-07 2:16
Martin#20-Feb-07 2:16 
GeneralRe: UTF8Encoding question Pin
lmoelleb20-Feb-07 2:29
lmoelleb20-Feb-07 2:29 
GeneralRe: UTF8Encoding question Pin
Martin#20-Feb-07 2:47
Martin#20-Feb-07 2:47 

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.