private void OnEventExposure() { if (toupcam_ != null) { uint nTime = 0; if (toupcam_.get_ExpoTime(out nTime)) { trackBar1.Value = (int)nTime; label1.Text = (nTime / 1000).ToString() + " ms"; } } }