Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / MonthCalendarDesigner.cs / 1 / MonthCalendarDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.Design.MonthCalendarDesigner..ctor()")] namespace System.Windows.Forms.Design { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; ////// /// internal class MonthCalendarDesigner : ControlDesigner { public MonthCalendarDesigner() { AutoResizeHandles = true; } ////// Provides a designer that can design components /// that extend MonthCalendar. ////// /// Retrieves a set of rules concerning the movement capabilities of a component. /// This should be one or more flags from the SelectionRules class. If no designer /// provides rules for a component, the component will not get any UI services. /// public override SelectionRules SelectionRules { get { SelectionRules rules = base.SelectionRules; if ((Control.Parent == null) || (Control.Parent != null && !Control.Parent.IsMirrored)) { rules &= ~(SelectionRules.TopSizeable | SelectionRules.LeftSizeable); } else { Debug.Assert(Control.Parent != null && Control.Parent.IsMirrored); rules &= ~(SelectionRules.TopSizeable | SelectionRules.RightSizeable); } return rules; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _AcceptOverlappedAsyncResult.cs
- UserPersonalizationStateInfo.cs
- AlternationConverter.cs
- CodeAttributeArgumentCollection.cs
- Resources.Designer.cs
- RewritingPass.cs
- BrowserInteropHelper.cs
- ThreadExceptionEvent.cs
- WebPartEventArgs.cs
- JournalEntryListConverter.cs
- ScriptRegistrationManager.cs
- DocumentViewer.cs
- CurrentTimeZone.cs
- SimpleType.cs
- EntityWrapperFactory.cs
- DesignerDataColumn.cs
- QuaternionKeyFrameCollection.cs
- SerializerDescriptor.cs
- TdsParser.cs
- LoadedEvent.cs
- BackgroundWorker.cs
- SocketManager.cs
- AccessDataSource.cs
- MenuBase.cs
- DataContract.cs
- RelationshipConstraintValidator.cs
- ItemCollection.cs
- Sql8ExpressionRewriter.cs
- AssemblyResourceLoader.cs
- Operators.cs
- mda.cs
- WindowsToolbar.cs
- ConnectionManagementElement.cs
- HighlightComponent.cs
- CheckBoxDesigner.cs
- AssemblyInfo.cs
- XmlSchemaImporter.cs
- EventBuilder.cs
- SrgsElementFactory.cs
- StringBuilder.cs
- SignedXml.cs
- CodeSubDirectoriesCollection.cs
- DataGridViewButtonColumn.cs
- TreeViewCancelEvent.cs
- CodeMemberProperty.cs
- CompositeControl.cs
- PackWebRequestFactory.cs
- SystemWebSectionGroup.cs
- XmlIlGenerator.cs
- TemplateKeyConverter.cs
- UnsafeNativeMethodsPenimc.cs
- MembershipUser.cs
- DrawingVisual.cs
- DetailsView.cs
- NameValueConfigurationElement.cs
- Listen.cs
- ThemeInfoAttribute.cs
- SettingsPropertyValueCollection.cs
- HitTestParameters.cs
- PrePrepareMethodAttribute.cs
- hresults.cs
- PointF.cs
- BidOverLoads.cs
- Group.cs
- OrderPreservingSpoolingTask.cs
- BamlRecordHelper.cs
- FrameworkElementFactoryMarkupObject.cs
- ControlEvent.cs
- TimeZone.cs
- SafeNativeMemoryHandle.cs
- DataGridViewRowsAddedEventArgs.cs
- SapiAttributeParser.cs
- _UriSyntax.cs
- PerSessionInstanceContextProvider.cs
- HttpWebRequest.cs
- AnonymousIdentificationSection.cs
- DataBinding.cs
- PathParser.cs
- WebServiceAttribute.cs
- _LazyAsyncResult.cs
- XmlCDATASection.cs
- HttpDigestClientElement.cs
- DataPagerFieldCommandEventArgs.cs
- FormViewUpdateEventArgs.cs
- SqlConnectionHelper.cs
- Operator.cs
- NativeMethods.cs
- XmlAttributeCache.cs
- OracleParameterBinding.cs
- ToolbarAUtomationPeer.cs
- CodeEventReferenceExpression.cs
- TypeExtension.cs
- Selector.cs
- SafeWaitHandle.cs
- XamlFigureLengthSerializer.cs
- WebReference.cs
- FontNamesConverter.cs
- FixedHighlight.cs
- TimeEnumHelper.cs
- CompilationSection.cs