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

SoundVolume

Syntax

[ C# ]
  1. public int SoundVolume;  

Description

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

[ C# ]
  1. private void trackBarSoundVolume_Scroll(object sender, System.EventArgs e)  
  2. {  
  3.     f_in_box__control1.AxCode.SoundVolume =   
  4.         (ushort)(trackBarSoundVolume.Value * f_in_box__lib.AxCode.MaxSoundVolume / 100);  
  5.   
  6.     labelSoundVolume.Text =   
  7.         (f_in_box__control1.AxCode.SoundVolume * 100 / f_in_box__lib.AxCode.MaxSoundVolume).ToString() +   
  8.         " %";  
  9. }  

[ VB.Net ]
  1. Private Sub trackBarSoundVolume_Scroll(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles trackBarSoundVolume.Scroll  
  2.     f_in_box__control1.AxCode.SoundVolume = trackBarSoundVolume.Value * f_in_box__lib.AxCode.MaxSoundVolume / 100  
  3.   
  4.     labelSoundVolume.Text = (f_in_box__control1.AxCode.SoundVolume * 100 \ f_in_box__lib.AxCode.MaxSoundVolume).ToString() + " %"  
  5. End Sub  


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