F-IN-BOX .NET Help >> Classes >> AxCode >> Properties

SoundVolume

Syntax

[ C# ]
public int SoundVolume;

Description

Gets / sets sound volume for flash sounds. See MaxSoundVolume for more information about max value of SoundVolume.

[ C# ]
private void trackBarSoundVolume_Scroll(object sender, System.EventArgs e)
{
	f_in_box__control1.AxCode.SoundVolume = 
		(ushort)(trackBarSoundVolume.Value * f_in_box__lib.AxCode.MaxSoundVolume / 100);

	labelSoundVolume.Text = 
		(f_in_box__control1.AxCode.SoundVolume * 100 / f_in_box__lib.AxCode.MaxSoundVolume).ToString() + 
		" %";
}

[ VB.Net ]
Private Sub trackBarSoundVolume_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles trackBarSoundVolume.Scroll
	f_in_box__control1.AxCode.SoundVolume = trackBarSoundVolume.Value * f_in_box__lib.AxCode.MaxSoundVolume / 100

	labelSoundVolume.Text = (f_in_box__control1.AxCode.SoundVolume * 100 \ f_in_box__lib.AxCode.MaxSoundVolume).ToString() + " %"
End Sub


Copyright © Softanics. All rights reserved.
F-IN-BOX is a trademark of Softanics.
Macromedia and Shockwave Flash are trademarks of Adobe