Indicates whether the specified property's dialog is available.
public bool HasDialog(Leadtools.Mediafoundation.TargetFormatDlg Dialog)
Public Function HasDialog( _ByVal Dialog As Leadtools.Mediafoundation.TargetFormatDlg _) As Boolean
public:bool HasDialog(Leadtools.Mediafoundation.TargetFormatDlg Dialog)
Dialog
A TargetFormatDlg value that specifies which dialog's availability is being queried.
true if the specified property's dialog is available; otherwise, it is false
Indicates whether the specified property's dialog is available.
using Leadtools;using Leadtools.MediaFoundation;using LeadtoolsMediaFoundationExamples.Fixtures;public bool _result = false;public CaptureCtrlForm _form = new CaptureCtrlForm();public void HasDialogExample(){// reference the capture controlCaptureCtrl capturectrl = _form.CaptureCtrl;try{// set a video device first, you should use your video device name hereif (capturectrl.VideoDevices["Analog"] == null)throw new Exception("No Analog audio device available");capturectrl.VideoDevices["Analog"].Selected = true;// select the WMV target formatTargetFormat tf = capturectrl.TargetFormats[TargetFormatType.WMV];tf.Selected = true;// The HasDialog method tells us that the control// can display the desired settings dialog.// check to see if the Profile dialog is availableif (tf.HasDialog(TargetFormatDlg.Profile)){// show the dialogtf.ShowDialog(TargetFormatDlg.Profile, _form);// set the result_result = true;}}catch (Exception){_result = false;}}
Imports LeadtoolsImports Leadtools.MediaFoundationImports LeadtoolsMediaFoundationExamples.FixturesPublic _result As Boolean = FalsePublic _form As CaptureCtrlForm = New CaptureCtrlForm()Public Sub HasDialogExample()' reference the capture controlDim capturectrl As CaptureCtrl = _form.CaptureCtrlTry' set a video device first, you should use your video device name hereIf capturectrl.VideoDevices("Analog") Is Nothing ThenThrow New Exception("No Analog audio device available")End Ifcapturectrl.VideoDevices("Analog").Selected = True' select WMV target formatDim tf As TargetFormat = capturectrl.TargetFormats(TargetFormatType.WMV)tf.Selected = True' The HasDialog method tells us that the control' can display the desired settings dialog.' check to see if the Profile dialog is availableIf tf.HasDialog(TargetFormatDlg.Profile) Then' show the dialogtf.ShowDialog(TargetFormatDlg.Profile, _form)' set the result_result = TrueEnd IfCatch e1 As Exception_result = FalseEnd TryEnd Sub
|
Products |
Support |
Feedback: HasDialog Method (TargetFormat) - Leadtools.MediaFoundation |
Introduction |
Help Version 19.0.2017.6.16
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.