Does anyone has developed application with graphics or diagram within
.compact framework?

thank you in advance

best regards

marco

RE: graphics and diagram with pocket by DaveCorby

DaveCorby
Fri May 27 09:14:02 CDT 2005

Marco,

I have just written my first little graphics routine for C# on Pocket PC.

I found help myself so here it is for you too.
I have ripped out all my main code to the basic requirement for you.
I am sure there is a better way - but I havent found it yet!

I am drawing on a panel and had to add an extra paint function:

panel1.Paint += new PaintEventHandler(DrawGraphics);

private void DrawGraphics(object sender, PaintEventArgs e)
{

Pen myPen = new Pen(Color.Blue);
e.Graphics.DrawLine(myPen, i1, i2 ,i3 ,i4);

myPen.Dispose();
}

Hope that helps!

Regards,

Dave

"Marco De Carolis" wrote:

> Does anyone has developed application with graphics or diagram within
> ..compact framework?
>
> thank you in advance
>
> best regards
>
> marco
>
>
>

Re: graphics and diagram with pocket by Marco

Marco
Wed Jun 01 05:26:35 CDT 2005

Hi Dave,
thank you for your help.
This afternoon I will try it.
Excuse me if have readen only today, but I have a lot of job open a this
time.

Thank you again
marco


"Dave Corby" <DaveCorby@discussions.microsoft.com> ha scritto nel messaggio
news:AAC48DC1-66BC-44BE-BC9E-2BCB6D90B8C5@microsoft.com...
> Marco,
>
> I have just written my first little graphics routine for C# on Pocket PC.
>
> I found help myself so here it is for you too.
> I have ripped out all my main code to the basic requirement for you.
> I am sure there is a better way - but I havent found it yet!
>
> I am drawing on a panel and had to add an extra paint function:
>
> panel1.Paint += new PaintEventHandler(DrawGraphics);
>
> private void DrawGraphics(object sender, PaintEventArgs e)
> {
>
> Pen myPen = new Pen(Color.Blue);
> e.Graphics.DrawLine(myPen, i1, i2 ,i3 ,i4);
>
> myPen.Dispose();
> }
>
> Hope that helps!
>
> Regards,
>
> Dave
>
> "Marco De Carolis" wrote:
>
>> Does anyone has developed application with graphics or diagram within
>> ..compact framework?
>>
>> thank you in advance
>>
>> best regards
>>
>> marco
>>
>>
>>