Page 1 of 1

getting the name of the camera

Posted: Sun Sep 28, 2014 5:49 am
by BillG
i have a form with 2 image viewers on it. i want to place a label above each viewer identifying the camera it is displaying. is this how i get the name of the name. it doesn't seem to be working.

Code: Select all

if (_slaveViewers[0].CaptureDevice != null)
{
    Camera1Name.Text = _slaveViewers[0].CaptureDevice.FriendlyName;
}

if (_slaveViewers[1].CaptureDevice != null)
{
    Camera2Name.Text = _slaveViewers[1].CaptureDevice.FriendlyName;
}

Re: getting the name of the camera

Posted: Sun Sep 28, 2014 2:20 pm
by BillG
got it working. just had it in the wrong place.