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
- ObjectHandle.cs
- MultipleViewProviderWrapper.cs
- TemplateInstanceAttribute.cs
- RemotingException.cs
- DataTable.cs
- ViewBase.cs
- SharedPersonalizationStateInfo.cs
- PageThemeCodeDomTreeGenerator.cs
- EntityContainerEmitter.cs
- HtmlInputHidden.cs
- COM2ComponentEditor.cs
- webeventbuffer.cs
- PriorityQueue.cs
- _KerberosClient.cs
- basenumberconverter.cs
- Block.cs
- TransactionBehavior.cs
- FileUtil.cs
- TextLine.cs
- SymbolEqualComparer.cs
- RotationValidation.cs
- CodeDOMProvider.cs
- PreviewPageInfo.cs
- UnregisterInfo.cs
- ResourceProviderFactory.cs
- XmlQualifiedName.cs
- SiteMapDataSourceView.cs
- HatchBrush.cs
- ImageMap.cs
- QueryContinueDragEventArgs.cs
- PageMediaType.cs
- HwndStylusInputProvider.cs
- RIPEMD160.cs
- TokenBasedSetEnumerator.cs
- ChildTable.cs
- FullTextState.cs
- OracleColumn.cs
- LiteralControl.cs
- DataGridBoolColumn.cs
- TextRunCacheImp.cs
- InputLanguageCollection.cs
- RelationshipType.cs
- EmptyEnumerable.cs
- Model3D.cs
- TiffBitmapEncoder.cs
- XmlElementCollection.cs
- GeneralTransformGroup.cs
- NativeMethods.cs
- CustomAttribute.cs
- StorageComplexTypeMapping.cs
- ErrorWrapper.cs
- Model3D.cs
- PerfCounterSection.cs
- PointAnimationUsingKeyFrames.cs
- DecoderFallbackWithFailureFlag.cs
- ValidationPropertyAttribute.cs
- TreeViewImageIndexConverter.cs
- CounterSampleCalculator.cs
- TypeNameConverter.cs
- EmptyStringExpandableObjectConverter.cs
- FixedSOMFixedBlock.cs
- RegexCode.cs
- IMembershipProvider.cs
- DataServiceProcessingPipelineEventArgs.cs
- GridViewUpdatedEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- DropShadowEffect.cs
- ConfigurationErrorsException.cs
- _SslStream.cs
- ConfigurationStrings.cs
- FtpWebResponse.cs
- SQLGuidStorage.cs
- SynchronizedPool.cs
- AssemblyNameUtility.cs
- ServiceCredentialsSecurityTokenManager.cs
- DPTypeDescriptorContext.cs
- WCFBuildProvider.cs
- BaseValidator.cs
- DocumentGrid.cs
- SiteMapHierarchicalDataSourceView.cs
- RectangleGeometry.cs
- WrapperEqualityComparer.cs
- XmlElementCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- BindingsCollection.cs
- querybuilder.cs
- SafeSecurityHandles.cs
- DesignerCategoryAttribute.cs
- HtmlInputRadioButton.cs
- ContextInformation.cs
- SqlDataSourceStatusEventArgs.cs
- MyContact.cs
- Model3DGroup.cs
- StandardOleMarshalObject.cs
- DataGridViewCheckBoxColumn.cs
- WsiProfilesElement.cs
- ByteStorage.cs
- ZipQueryOperator.cs
- LinqDataSourceContextEventArgs.cs
- TextTrailingCharacterEllipsis.cs