* Form.cs: Property is 2.0 only
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / Form.cs
index 1097c51f26a04041a3d9edcc6c4e99b2158cb724..fd3b877dafbd2bc01c6c85294c8c118afe3517f9 100644 (file)
@@ -545,7 +545,7 @@ namespace System.Windows.Forms {
 
                // This is the menu in display and being used because of merging this can
                // be different then the menu that is actually assosciated with the form
-               public MainMenu ActiveMenu {
+               internal MainMenu ActiveMenu {
                        get {
                                if (IsMdiChild)
                                        return null;
@@ -1508,7 +1508,7 @@ namespace System.Windows.Forms {
                                case Msg.WM_NCCALCSIZE: {
                                        XplatUIWin32.NCCALCSIZE_PARAMS  ncp;
 
-                                       if ((menu != null) && (m.WParam == (IntPtr)1)) {
+                                       if ((ActiveMenu != null) && (m.WParam == (IntPtr)1)) {
                                                ncp = (XplatUIWin32.NCCALCSIZE_PARAMS)Marshal.PtrToStructure(m.LParam, typeof(XplatUIWin32.NCCALCSIZE_PARAMS));
 
                                                // Adjust for menu