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
- ToolStripPanelCell.cs
- IncomingWebRequestContext.cs
- DataGridParentRows.cs
- DbParameterCollectionHelper.cs
- PackWebRequest.cs
- nulltextnavigator.cs
- RenderDataDrawingContext.cs
- TemplateKeyConverter.cs
- MimeParameterWriter.cs
- AttributedMetaModel.cs
- TemplateBindingExpression.cs
- Collection.cs
- ReaderWriterLock.cs
- BoundPropertyEntry.cs
- WebRequestModuleElementCollection.cs
- ElementProxy.cs
- sqlser.cs
- SchemaCompiler.cs
- InputGestureCollection.cs
- Tile.cs
- SqlUdtInfo.cs
- VariableQuery.cs
- ExclusiveCanonicalizationTransform.cs
- ConstraintStruct.cs
- GridViewPageEventArgs.cs
- SymbolTable.cs
- DoubleCollectionValueSerializer.cs
- Tokenizer.cs
- ScrollPattern.cs
- Normalization.cs
- CodeAttributeDeclaration.cs
- MimePart.cs
- JoinCqlBlock.cs
- ConstraintConverter.cs
- OracleFactory.cs
- ApplicationDirectoryMembershipCondition.cs
- TreeNodeBinding.cs
- Attributes.cs
- FormatterConverter.cs
- EntitySqlQueryCacheEntry.cs
- mansign.cs
- RegexCaptureCollection.cs
- DataListItemEventArgs.cs
- MetadataCacheItem.cs
- FlowNode.cs
- RegexStringValidatorAttribute.cs
- DataRowView.cs
- MachineSettingsSection.cs
- EventPropertyMap.cs
- FieldNameLookup.cs
- ServiceContractViewControl.cs
- CryptoConfig.cs
- XmlDesignerDataSourceView.cs
- WsdlBuildProvider.cs
- LocatorGroup.cs
- CodeGotoStatement.cs
- XmlSortKey.cs
- EdmToObjectNamespaceMap.cs
- ResponseStream.cs
- OdbcError.cs
- ProtectedProviderSettings.cs
- TableAdapterManagerHelper.cs
- DefaultAssemblyResolver.cs
- TitleStyle.cs
- PermissionListSet.cs
- VsPropertyGrid.cs
- GroupByExpressionRewriter.cs
- SessionStateSection.cs
- PersonalizationStateInfo.cs
- LogicalExpressionEditor.cs
- MouseActionValueSerializer.cs
- PasswordBox.cs
- TextEffect.cs
- MimeBasePart.cs
- CodeParameterDeclarationExpressionCollection.cs
- FileUpload.cs
- WebResponse.cs
- DBCommandBuilder.cs
- SqlFlattener.cs
- TableParaClient.cs
- EdgeProfileValidation.cs
- DecimalAnimationUsingKeyFrames.cs
- WindowManager.cs
- DataTableReaderListener.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- EntityDescriptor.cs
- ObjectAnimationBase.cs
- PolicyException.cs
- ReadWriteSpinLock.cs
- ReferencedAssembly.cs
- OrderPreservingMergeHelper.cs
- latinshape.cs
- MetadataPropertyAttribute.cs
- XmlNavigatorStack.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ThaiBuddhistCalendar.cs
- WindowsStreamSecurityElement.cs
- LabelLiteral.cs
- BufferedGraphicsContext.cs
- ControlCodeDomSerializer.cs