Re: Aaaaarghhh!!! Drawing a circle?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



O.K., Thanks for the info, i'll give this a go tommorrow. :-)

All the programming i've ever done simply involves calculations that provide
an answer. Hence all i've ever used on a form is textboxes, buttons and
labels.

Watch this space ;-)

Jem


"<ctacke/>" <ctacke[@]opennetcf[dot]com> wrote in message
news:%239qEAycNHHA.3916@xxxxxxxxxxxxxxxxxxxxxxx
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









.



Relevant Pages

  • Re: no names allowed, we serve types only
    ... including Circle, would be implied. ... do you have any practical experience programming ... That both Russell and computer scientists find the same tool, types, ... for the languages of logic, ...
    (comp.databases.theory)
  • Re: Selecting an HDTV
    ... | As you all know good TVs have means ... | linear - circle in the center is round, circles at right and left will be ... I see little advantage to HDTV programming - do ... they do not look like what they did in the store. ...
    (alt.tv.tech.hdtv)
  • Re: drawing Lines
    ... Well thanks for the reply, slight problem, it's such a long time since I did any programming I'm going to need a little more leading by the hand. ... Information is sent via radio to a console, this console can be connected to the computer via a USB cable. ... I want to know if I can draw lines in that circle at any one of the 360 degrees for a specific length. ... I hope to get date in and plot a line from the centre of the circle to the outer rim at a specific angle. ...
    (microsoft.public.vb.general.discussion)
  • Re: Aaaaarghhh!!! Drawing a circle?
    ... need to understand it to move forward programming. ... You need to create a project, drop on a Form, the override that Form's ... create a brush and draw a circle. ... small crosshair to move .01mm in the corrosponding direction. ...
    (microsoft.public.pocketpc.developer)
  • A opinion on the current cad cam posts...
    ... If youv'e had a taste of programming, and read web pages, sales ptches, ... You make a program in mastercam to cut a circle. ... You print this setup sheets, tool lists, etc... ... Just like the mold industry, a project will go for 5,000,000 million ...
    (alt.machines.cnc)