Click here to Skip to main content
15,900,457 members
Home / Discussions / C#
   

C#

 
GeneralRe: Recursive function to display the number of nodes of a singly connected list? Pin
Wjousts9-Nov-05 7:35
Wjousts9-Nov-05 7:35 
GeneralRe: Recursive function to display the number of nodes of a singly connected list? Pin
J4amieC9-Nov-05 4:45
J4amieC9-Nov-05 4:45 
GeneralRe: Recursive function to display the number of nodes of a singly connected list? Pin
ektoras9-Nov-05 7:38
ektoras9-Nov-05 7:38 
GeneralRe: Recursive function to display the number of nodes of a singly connected list? Pin
J4amieC9-Nov-05 9:27
J4amieC9-Nov-05 9:27 
GeneralRe: Recursive function to display the number of nodes of a singly connected list? Pin
ektoras9-Nov-05 9:34
ektoras9-Nov-05 9:34 
GeneralRe: Recursive function to display the number of nodes of a singly connected list? Pin
J4amieC9-Nov-05 10:00
J4amieC9-Nov-05 10:00 
GeneralRe: Recursive function to display the number of nodes of a singly connected list? Pin
ektoras9-Nov-05 10:27
ektoras9-Nov-05 10:27 
QuestionGDI+ metafile Pin
Timothy Tim9-Nov-05 0:23
Timothy Tim9-Nov-05 0:23 
Hi folks,

I have project writing rich text document on metafile using GDI
Now I'm trying to make it using GDI+
Problem: I can't draw it precisely!!

Test sample: create metafile 10x10 inces, draw strips 10, 9, 8 inches long:
<br />
RectangleF frame = new RectangleF(0f, 0f, 10f, 10f);<br />
Metafile mf;<br />
Graphics g1;<br />
<br />
using(Graphics gr = CreateGraphics())<br />
{<br />
  IntPtr dc = gr.GetHdc();<br />
  mf = new Metafile(@"c:\inch.emf", dc, frame, MetafileFrameUnit.Inch, EmfType.EmfOnly);<br />
  gr.ReleaseHdc(dc);<br />
}<br />
g1 = Graphics.FromImage(mf);<br />
g1.PageUnit = GraphicsUnit.Inch;<br />
g1.DrawLine(Pens.Green, 0F, 1F, 10F, 1F);<br />
<br />
g1.DrawLine(Pens.Green, 0F, 3F, 9F, 3F);<br />
g1.DrawLine(Pens.Green, 0F, 5F, 8F, 5F);<br />
g1.DrawLine(Pens.GreenYellow, 1f, 0f, 1f, 10f);<br />
g1.DrawLine(Pens.GreenYellow, 3f, 0f, 3f, 9f);<br />
g1.DrawLine(Pens.GreenYellow, 5f, 0f, 5f, 8f);      <br />
<br />
g1.Dispose();<br />
mf.Dispose();<br />

Strips are shorter than needed!!
Using other units (Milimeter, Pixel, Point, Document) produces different results - all invalid

Question: how to create precise EMF - with definite size

WBR Tim
QuestionURGENT!!!PLEASE...DataGrid Drag_Drop!! Pin
innocent738-Nov-05 23:56
innocent738-Nov-05 23:56 
QuestionAlgorithm Question - Urgent Help Needed Pin
allenmpcx8-Nov-05 23:40
allenmpcx8-Nov-05 23:40 
AnswerRe: Algorithm Question - Urgent Help Needed Pin
J4amieC9-Nov-05 0:19
J4amieC9-Nov-05 0:19 
AnswerRe: Algorithm Question - Urgent Help Needed Pin
HymanRoth9-Nov-05 0:43
HymanRoth9-Nov-05 0:43 
GeneralRe: Algorithm Question - Urgent Help Needed Pin
allenmpcx9-Nov-05 0:47
allenmpcx9-Nov-05 0:47 
AnswerRe: Algorithm Question - Urgent Help Needed Pin
leppie9-Nov-05 6:58
leppie9-Nov-05 6:58 
QuestionSource File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 198 Pin
israfel8-Nov-05 23:02
israfel8-Nov-05 23:02 
QuestionUse of Datagrid for non database app Pin
ratinahat0018-Nov-05 22:41
ratinahat0018-Nov-05 22:41 
AnswerRe: Use of Datagrid for non database app Pin
Rody van Sambeek9-Nov-05 13:07
Rody van Sambeek9-Nov-05 13:07 
QuestionCRC-16 Convert to C vb.Net Pin
RichardBerry8-Nov-05 22:22
RichardBerry8-Nov-05 22:22 
QuestionRetreive file list from remote server using ftp - Error 226 - Urgent help required Pin
SheenSylesh8-Nov-05 22:03
SheenSylesh8-Nov-05 22:03 
QuestionHow to Bind ComboBox1 with DataSet1 ? Pin
majidbhutta8-Nov-05 21:54
majidbhutta8-Nov-05 21:54 
AnswerRe: How to Bind ComboBox1 with DataSet1 ? Pin
Susan Hernandez9-Nov-05 14:42
Susan Hernandez9-Nov-05 14:42 
AnswerRe: How to Bind ComboBox1 with DataSet1 ? Pin
n10sive10-Nov-05 12:04
n10sive10-Nov-05 12:04 
QuestionParent Form Child Form Problem Pin
ekynox8-Nov-05 20:37
ekynox8-Nov-05 20:37 
AnswerRe: Parent Form Child Form Problem Pin
hga_gi8-Nov-05 23:05
hga_gi8-Nov-05 23:05 
GeneralRe: Parent Form Child Form Problem Pin
ekynox8-Nov-05 23:36
ekynox8-Nov-05 23:36 

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.