You welcome...Animation of VB for me is a bit tricky.But thanks for the concern.I'm sure Eric would give me some good information then.
hi Christy,
In VB
Start a new project.
Place a Picture box component on the Form, make it about 10cm square
Place a Shape1 component in the Picture box, make the shape1 Rectangular, fill style Solid, fill with a dark colour, say Green for 'water'
Adjust the shape to represent the tank, about 2cm wide, 5cm high.
If necessary, send the tank box to the back, use the menu to do this.
Place a second Shape2 at the top of the tank, adjust the shape height so its just covering the inside edge of the tank shape, size about 2cm wide and 2 mm high
Set the fill style to solid and make the fill colour say blue for 'air' [ above the water]
Place a timer component on the Form, set timer to enabled, interval say 50msec.
option explicit
Dim Water as integer
<type inside the Timer procedure.>
Water = Water+5
Shape2.Height = Water
'' this will increase the height of the 'air' shape rectangle so it will appear that water level is falling.
When you run this simple program the water level in the tank will appear to fall.
You should be able to use a Frame for the IN valve radio button options,
likewise for the OUT valve
You would test in the Timer proc, the IN/OUT buttons and either INC or DEC the Water variable, so the tank would appear to fill or empty.
Use a Horizontal Bar to adjust the Timer interval.
This is enough to get you started....