Does anybody know if there is a way to to show search conditions dialog in Windows Forms application and get search conditions from it (Using C#)?
I need user to specify conditions and then do some MFiles API actions on searched objects.
string vaultPath = string.Format(@"{0}:\{1}\", MFilesInstance.MFClientAPP.GetDriveLetter(), vault.Name);
DialogResult res = dlg.ShowDialog();
if (res == DialogResult.OK)
{
list.ViewPath = dlg.SelectedPath.Replace(vaultPath, "") + @"\";
lbl_selectedView.Text = list.ViewPath;
}

oResults = Vault.ObjectSearchOperations.GetObjectsInPath( lbl_selectedView.Text, false, true);
//..do my stuff with SearchResults
string vaultPath = string.Format(@"{0}:\{1}\", MFilesInstance.MFClientAPP.GetDriveLetter(), vault.Name);
DialogResult res = dlg.ShowDialog();
if (res == DialogResult.OK)
{
list.ViewPath = dlg.SelectedPath.Replace(vaultPath, "") + @"\";
lbl_selectedView.Text = list.ViewPath;
}

oResults = Vault.ObjectSearchOperations.GetObjectsInPath( lbl_selectedView.Text, false, true);
//..do my stuff with SearchResults
© 2025 M-Files, All Rights Reserved.