Creating an Animated and Filled Tank Using the Symbol Factory Controls
Creating an animated and filled tank takes an instance of the Symbol Factory .NET component and the Symbol Factory Cutaway component. To create the following:
Place an instance of the Symbol Factory Standard Control on a form
Bring up the Symbol Factory Standard Control property sheet
Select a tank image from the "Tanks" category
Click the OK button
Place an instance of the Symbol Factory Cutaway Control on the form and position it on top of the tank image you placed on the form.
Right click on the Symbol Factory Cutaway Control and select Properties on the menu that appears. This will bring up the Symbol Factory Cutaway Control property sheet.
7. Set the LevelMax and LevelMin properties to match the range of values you will be passing to the control. You may also choose to set these properties from your program using the syntax:
Dim doubleValue As Double doubleValue = 50.6 cutawayControl1.LevelMax = doubleValue
For Integer Numbers:
C#
cutawayControl1.LevelInt = 50;
or
int integerValue = 50; cutawayControl1.LevelInt = integerValue;
VB
cutawayControl1.LevelInt = 50
or
Dim integerValue As Integer integerValue = 50 cutawayControl1.LevelInt = integerValue
9. The value you pass should be within the bounds of the LevelMax and LevelMin properties.
Final Step
You now have the basics of what the Symbol Factory .NET component can do for your application. Please download a demo copy or purchase your own license of the Symbol Factory .NET to realize the full potential of this product.