Erasing a point,Picture box and Shading an area - Programmers Heaven

#### Howdy, Stranger!

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

# Erasing a point,Picture box and Shading an area

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??

matu

• 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.