getting the name of the camera

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
BillG
Posts: 47
Joined: Fri Oct 10, 2008 3:52 pm

getting the name of the camera

Post 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;
}
BillG
Posts: 47
Joined: Fri Oct 10, 2008 3:52 pm

Re: getting the name of the camera

Post by BillG »

got it working. just had it in the wrong place.
Post Reply