Re: Aaaaarghhh!!! Drawing a circle?



It's like overriding any method. Understanding this is basic OOP and you
need to understand it to move forward programming.

You need to create a project, drop on a Form, the override that Form's
OnPaint. Once you do that and make sure it's calling into OnPaint, then
create a brush and draw a circle.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



"Jem" <xxxxxxxxxx> wrote in message
news:PMSdnQAkO7x-MjvYnZ2dnUVZ8qqlnZ2d@xxxxxxxxxxxx
Ahhhh ha... It's like everything - It's quite simple when you know how to
do it. I don't even know how to override OnPaint! :-(

All the web tutorials i've tried to follow don't work for me for some
reason or other. I know i'm doing something wrong, but believe me i've
spent ages on this and am now at the point of sheer frustration.

Hellllllllllp!!!!

Ta

Jem

"<ctacke/>" <ctacke[@]opennetcf[dot]com> wrote in message
news:unKUdWcNHHA.448@xxxxxxxxxxxxxxxxxxxxxxx
It's quite simple - override OnPaint (and probably OnPaintBackground) and
paint the circle and lines. There are lots of web tutorials for this
type of thing.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--




"Jem" <xxxxxxxxxx> wrote in message
news:kvudnWQfK-x2CjvYnZ2dnUVZ8surnZ2d@xxxxxxxxxxxx
How difficult can it be to draw a circle and a couple of lines in VS
2005 VB.net???????

It was so much easier when I could just select a tool and draw them at
design time!

This has got me really frustrated, and feeling pretty stupid. All I
want to do is to display a circle on a pocket PC screen (WM5) have it
intersected with a horizontal and vertical line so that it looks like
the cross hairs on a gun sight. I then want a smaller crosshair in the
middle that can be moved around by means of four buttons, one each for
up, down, left and right. Each time a button is clicked I want the
small crosshair to move .01mm in the corrosponding direction. The large
crosshair will always remain stationary, thus referencing the centre of
the circle

I'm a real novice programmer and this is driving me mad. My simple
programs have never really needed any sort of graphics before. It used
to be so easy.

Can anyone help me out please.

Many thanks

Jem







.