Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / PrintDialogDesigner.cs / 1 / PrintDialogDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.Design { using System.ComponentModel; using System.ComponentModel.Design; using System.Windows.Forms; using Microsoft.Win32; using System.Collections; using System.Diagnostics; ////// This is the designer for PrintDialog components. /// internal class PrintDialogDesigner : ComponentDesigner { ////// This method is called when a component is first initialized, typically after being first added /// to a design surface. We need to override this since the printDialog when added in Whidbey should set /// the UseEXDialog == true; /// UseEXDialog = true means to use the EX versions of the dialogs when running on XP or above, and to ignore the ShowHelp & ShowNetwork properties. /// If running below XP then UseEXDialog is ignored and the non-EX dialogs are used & ShowHelp & ShowNetwork are respected. /// UseEXDialog = false means to never use the EX versions of the dialog regardless of which O/S app is running on. ShowHelp & ShowNetwork will work in this case. /// public override void InitializeNewComponent(IDictionary defaultValues) { PrintDialog pd = Component as PrintDialog; Debug.Assert(pd != null, " PrintDialog is null !!"); if (pd != null) { pd.UseEXDialog = true; } } } } // 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
- PerfCounterSection.cs
- DropSourceBehavior.cs
- SessionEndedEventArgs.cs
- MembershipPasswordException.cs
- Switch.cs
- RowSpanVector.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- MetadataSource.cs
- ListViewItem.cs
- FormatException.cs
- DefaultAssemblyResolver.cs
- DictionaryBase.cs
- SqlNotificationEventArgs.cs
- Axis.cs
- HttpListenerContext.cs
- DataGridViewSelectedRowCollection.cs
- sqlnorm.cs
- AnimatedTypeHelpers.cs
- Privilege.cs
- SqlNamer.cs
- LingerOption.cs
- PaperSource.cs
- MessageBox.cs
- CodeTypeReferenceSerializer.cs
- DataGridViewComboBoxCell.cs
- WindowsListViewScroll.cs
- SymmetricKey.cs
- ScrollBarRenderer.cs
- PartialArray.cs
- PenThreadWorker.cs
- XmlSchemaElement.cs
- IncrementalHitTester.cs
- EdmItemCollection.cs
- Compilation.cs
- SqlBooleanMismatchVisitor.cs
- RefType.cs
- LocalBuilder.cs
- AstTree.cs
- ThumbButtonInfoCollection.cs
- entityreference_tresulttype.cs
- FixedSOMPageConstructor.cs
- ProfileGroupSettingsCollection.cs
- WinInet.cs
- sqlnorm.cs
- Command.cs
- OutputCacheSection.cs
- ApplyImportsAction.cs
- HwndProxyElementProvider.cs
- Point3DIndependentAnimationStorage.cs
- KeyNameIdentifierClause.cs
- OdbcParameter.cs
- SessionIDManager.cs
- NullRuntimeConfig.cs
- ValidationUtility.cs
- DesignerOptions.cs
- MethodBuilder.cs
- GlobalizationSection.cs
- FullTextState.cs
- SymbolTable.cs
- ServiceModelExtensionCollectionElement.cs
- AttachedAnnotationChangedEventArgs.cs
- WebRequest.cs
- Pair.cs
- PaginationProgressEventArgs.cs
- HttpPostedFile.cs
- WindowsPen.cs
- namescope.cs
- XmlImplementation.cs
- SurrogateSelector.cs
- Mutex.cs
- FixedSOMPage.cs
- CodeIdentifiers.cs
- Identifier.cs
- CustomAttributeBuilder.cs
- PerformanceCounterPermissionEntry.cs
- NullableDoubleSumAggregationOperator.cs
- SiteMapPath.cs
- Cursor.cs
- NCryptNative.cs
- SerTrace.cs
- TreeBuilder.cs
- ReflectEventDescriptor.cs
- QueryExecutionOption.cs
- ValidationSummary.cs
- TemplateComponentConnector.cs
- XhtmlConformanceSection.cs
- Internal.cs
- Single.cs
- GraphicsState.cs
- FontWeights.cs
- GeneralTransformGroup.cs
- Int16Converter.cs
- WeakEventTable.cs
- ScaleTransform.cs
- MembershipSection.cs
- DrawListViewColumnHeaderEventArgs.cs
- odbcmetadatafactory.cs
- X509ClientCertificateAuthentication.cs
- BookmarkEventArgs.cs
- ISAPIWorkerRequest.cs