Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Erasing a point,Picture box and Shading an area

matumatu Posts: 2Member
hi ,
I have the following questions :

1) If with a right click( PSet ) i can draw a point on a picture box then how do i delete(erase) the same point with mouse click.What command do i use?

2) Is it possible to add a scroll bar to a Picture box.

3) If i draw circles in the picture box with the points as centers , and these circles intersect , then HOW DO I DETERMINE THE INTERSECTED AREA(remembering that i donot have the equation of the circle) , and color or shade the intersected areas??

thanks in advance
matu

Comments

  • DarQDarQ Posts: 1,625Member
    : hi ,
    : I have the following questions :
    :
    : 1) If with a right click( PSet ) i can draw a point on a picture box then how do i delete(erase) the same point with mouse click.What command do i use?

    Erase:?? Pset (x,y),0

    : 2) Is it possible to add a scroll bar to a Picture box.

    Yes

    : 3) If i draw circles in the picture box with the points as centers , and these circles intersect , then HOW DO I DETERMINE THE INTERSECTED AREA(remembering that i donot have the equation of the circle) , and color or shade the intersected areas??

    The intersected area huh???? mmmm

    x1=100,y1=100,r=100
    x2=200,y2=100,r=100

    Hmm, these are 2 circles with same radius and same vertical alignment. The radius is the length from the center of a circle to the the outer edge of a circle...

    both circles will intersect somewhere but um,... dont remember my math class that well. but you can use the paint statement to color the intersected area. Something like this might work (will work when using pencil and paper)

    paint (x1+r+1,y2),vbpurple

    the +1 is for leaving the circle. The x1+r should be the circle edge, we dont need the edge.



    : thanks in advance
    : matu
    :

    [blue]DarQ[/blue]

Sign In or Register to comment.