17 references to GetTopLevel
System.Windows.Forms (17)
winforms\Managed\System\WinForms\ContainerControl.cs (1)
713
if (this.
GetTopLevel
()) {
winforms\Managed\System\WinForms\Control.cs (13)
4133
while (control != null && !control.
GetTopLevel
()) {
5503
if (oldVisible != newVisible && !(!oldVisible && newVisible && parent == null && !
GetTopLevel
())) {
5615
else if (IsHandleCreated &&
GetTopLevel
() && SafeNativeMethods.IsWindowEnabled(new HandleRef(window, Handle))) {
8803
ListenToUserPreferenceChanged(
GetTopLevel
());
11792
else if (IsHandleCreated &&
GetTopLevel
()) {
11972
bool topLevel =
GetTopLevel
();
11996
if (!
GetTopLevel
()) {
12091
if (
GetTopLevel
() != value) {
12125
if (
GetTopLevel
()) {
12521
if (!
GetTopLevel
()) {
12722
window.LockReference(
GetTopLevel
() && Visible);
13959
bool parentVisible =
GetTopLevel
();
14745
if (value.
GetTopLevel
()) {
winforms\Managed\System\WinForms\Form.cs (1)
2545
return
GetTopLevel
();
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
990
return
GetTopLevel
();
994
if (value !=
GetTopLevel
()) {