System.Windows.Forms.Application.Contains(Control, Control)

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

2 Examples 7

1. Example

Project: Unity-WinForms
Source File: Application.cs
View license
private static bool Contains(Control parent, Control child)
        {
            if (parent == child) return true;

            for (int i = 0; i < parent.Controls.Count; i++)
            {
                var c = parent.Controls[i];
                if (c == child) return true;

                if (Contains(c, child))
                    return true;
            }

            return false;
        }

2. Example

Project: Unity-WinForms
Source File: Application.cs
View license
public void ProccessMouse(float mouseX, float mouseY)
        {
            if (scaleX != 1f || scal/n ..... /n //View Source file for more details /n }