System.Windows.Forms.Form.ToString()

Here are the examples of the csharp api class System.Windows.Forms.Form.ToString() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

1. Example

Project: IfcDoc
Source File: FormEdit.cs
private void DeleteReferencesForDefinition(string definition)
        {
            foreach (DocSect/n ..... /n //View Source file for more details /n }

2. Example

Project: IfcDoc
Source File: FormMerge.cs
private void SaveNode(TreeNode tn)
        {
            ChangeInfo info = (ChangeInfo)tn.Tag;
     /n ..... /n //View Source file for more details /n }

3. Example

Project: ATF
Source File: AutomationService.cs
public bool CheckUnexpectedErrors()
        {
            if (s_unhandledException)
            {
                return true;
            }

            //Don't use foreach, which can lead to a "collection was modified" error.
            //Iterate last to first in case a form does close, to avoid out of bounds index.
            for (int i = Application.OpenForms.Count - 1; i >= 0; i--)
            {
                Form frm = Application.OpenForms[i];
                if (frm.Text == "Error" ||
                    frm.Text == "Unexpected Error" ||
                    frm.Text == "Microsoft .NET Framework" ||
                    frm.GetType() == typeof(ThreadExceptionDialog))
                {
                    Console.WriteLine("Form indicating error found: {0}", frm.ToString());
                    return true;
                }
            }

            return false;
        }

4. Example

Project: Gum
Source File: ModalTypeConverter.cs
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (context == null || context.Instance == null || provider == null)
                return value;

            var editorService = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));
            string variableName = context.PropertyDescriptor.DisplayName;

            Form form = VariableNameFormAssocaition[variableName];
            FormUtilities.Self.PositionCenterToCursor(form);
            DialogResult result = form.ShowDialog();

            object toReturn = value;

            if (result == DialogResult.OK)
            {
                // For now I'll use ToString, but maybe we
                // can adjust this in the future by making a
                // base class.
                toReturn = form.ToString();
            }

            return toReturn;

        }

5. Example

Project: IfcDoc
Source File: FormSelectTemplate.cs
private void LoadTemplates(TreeNode tnParent, List<DocTemplateDefinition> list)
        {
    /n ..... /n //View Source file for more details /n }