Code:
/ DotNET / DotNET / 8.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
- CryptoConfig.cs
- TypedTableBaseExtensions.cs
- StylusPoint.cs
- _OSSOCK.cs
- EmptyEnumerable.cs
- MetadataUtilsSmi.cs
- BuiltInPermissionSets.cs
- DisplayNameAttribute.cs
- CodeConditionStatement.cs
- TextBoxRenderer.cs
- PointValueSerializer.cs
- PropertyKey.cs
- GZipStream.cs
- EventToken.cs
- VersionPair.cs
- MatrixAnimationUsingPath.cs
- HostingPreferredMapPath.cs
- TransformerInfoCollection.cs
- DefaultPrintController.cs
- ListViewDeleteEventArgs.cs
- FileVersionInfo.cs
- SqlXml.cs
- ToolStripOverflow.cs
- _NegoStream.cs
- DrawItemEvent.cs
- RelationshipEnd.cs
- XmlElementAttribute.cs
- NetworkInterface.cs
- ObjectDataSourceEventArgs.cs
- ObjectStateManager.cs
- PropertyTab.cs
- AmbientProperties.cs
- StylusPointPropertyInfoDefaults.cs
- ObjectSecurityT.cs
- CompiledRegexRunnerFactory.cs
- SvcMapFileSerializer.cs
- SymbolPair.cs
- QueryOpcode.cs
- RTLAwareMessageBox.cs
- ScrollableControlDesigner.cs
- WebServiceClientProxyGenerator.cs
- OracleSqlParser.cs
- DbCommandTree.cs
- unsafenativemethodstextservices.cs
- TabletDevice.cs
- ConfigurationValidatorBase.cs
- PeerNameRegistration.cs
- ComPlusContractBehavior.cs
- DbMetaDataFactory.cs
- TraceContext.cs
- LinkedList.cs
- XPathEmptyIterator.cs
- StickyNoteAnnotations.cs
- XmlCharType.cs
- FastEncoderWindow.cs
- XmlValueConverter.cs
- DrawItemEvent.cs
- ProfilePropertyNameValidator.cs
- BitmapEffectrendercontext.cs
- XmlSchemaAttributeGroup.cs
- Rijndael.cs
- ComponentChangedEvent.cs
- DataControlImageButton.cs
- WebServiceTypeData.cs
- SamlNameIdentifierClaimResource.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ErrorRuntimeConfig.cs
- ListManagerBindingsCollection.cs
- ItemsControl.cs
- BulletChrome.cs
- ValueSerializer.cs
- Int32CAMarshaler.cs
- MetadataFile.cs
- ApplicationManager.cs
- CacheChildrenQuery.cs
- GlobalId.cs
- NGCUIElementCollectionSerializerAsync.cs
- DataTableReader.cs
- MultitargetingHelpers.cs
- RotateTransform3D.cs
- Empty.cs
- WebPartDisplayModeEventArgs.cs
- PeerEndPoint.cs
- MetadataException.cs
- CompiledIdentityConstraint.cs
- BinaryFormatterSinks.cs
- FontInfo.cs
- ButtonRenderer.cs
- TraceHandlerErrorFormatter.cs
- TextTrailingCharacterEllipsis.cs
- TransportOutputChannel.cs
- SystemIcons.cs
- FrameworkTextComposition.cs
- MenuItem.cs
- UnSafeCharBuffer.cs
- ToolStripGripRenderEventArgs.cs
- BasicCellRelation.cs
- CachingHintValidation.cs
- StyleXamlParser.cs
- UrlAuthFailedErrorFormatter.cs